Fixed - RSet.distributedIterator() and RScoredSortedSet.distributedIterator() methods throw script error #4017

pull/4031/head
Nikita Koksharov 3 years ago
parent 52ac9663cf
commit d8ae507ff3

@ -573,13 +573,13 @@ public class RedissonScoredSortedSet<V> extends RedissonExpirable implements RSc
args.add(count); args.add(count);
return commandExecutor.evalWriteAsync(getRawName(), codec, RedisCommands.EVAL_ZSCAN, return commandExecutor.evalWriteAsync(getRawName(), codec, RedisCommands.EVAL_ZSCAN,
"local cursor = redis.call('get', KEYS[3]); " "local cursor = redis.call('get', KEYS[2]); "
+ "if cursor ~= false then " + "if cursor ~= false then "
+ "cursor = tonumber(cursor); " + "cursor = tonumber(cursor); "
+ "else " + "else "
+ "cursor = 0;" + "cursor = 0;"
+ "end;" + "end;"
+ "if start_index == -1 then " + "if cursor == -1 then "
+ "return {0, {}}; " + "return {0, {}}; "
+ "end;" + "end;"
+ "local result; " + "local result; "

Loading…
Cancel
Save