Add tests to verify symmetric usage of scan cursor id.

See: #2796
This commit is contained in:
Christoph Strobl
2023-12-13 11:33:00 +01:00
parent b9f2e4c509
commit c19acb0b45
3 changed files with 270 additions and 7 deletions

View File

@@ -165,9 +165,9 @@ class JedisKeyCommands implements RedisKeyCommands {
}
if (type != null) {
result = connection.getJedis().scan(Long.toUnsignedString(cursorId).getBytes(), params, type);
result = connection.getJedis().scan(JedisConverters.toBytes(Long.toUnsignedString(cursorId)), params, type);
} else {
result = connection.getJedis().scan(Long.toUnsignedString(cursorId).getBytes(), params);
result = connection.getJedis().scan(JedisConverters.toBytes(Long.toUnsignedString(cursorId)), params);
}
return new ScanIteration<>(Long.parseUnsignedLong(result.getCursor()), result.getResult());