Fix JedisClusterZSetCommands.reverseRangeByLex(…) parameter order.
max/min parameter are now used in the correct order. Closes #1998
This commit is contained in:
@@ -384,9 +384,9 @@ class JedisClusterZSetCommands implements RedisZSetCommands {
|
||||
|
||||
try {
|
||||
if (limit.isUnlimited()) {
|
||||
return connection.getCluster().zrevrangeByLex(key, min, max);
|
||||
return connection.getCluster().zrevrangeByLex(key, max, min);
|
||||
}
|
||||
return connection.getCluster().zrevrangeByLex(key, min, max, limit.getOffset(), limit.getCount());
|
||||
return connection.getCluster().zrevrangeByLex(key, max, min, limit.getOffset(), limit.getCount());
|
||||
} catch (Exception ex) {
|
||||
throw convertJedisAccessException(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user