Fix JedisClusterZSetCommands.reverseRangeByLex(…) parameter order.

max/min parameter are now used in the correct order.

Closes #1998
This commit is contained in:
Mark Paluch
2021-03-15 17:28:19 +01:00
parent 04dae74c8b
commit 4dd5a7a4fa
2 changed files with 38 additions and 5 deletions

View File

@@ -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);
}