From d715de3d0cd44198ac9fae379393e92d95907079 Mon Sep 17 00:00:00 2001 From: Jungtaek Lim Date: Sun, 21 Dec 2014 22:09:06 +0900 Subject: [PATCH] JedisCluster.zrevrangeByScore: max, min are flipped to min, max in call --- src/main/java/redis/clients/jedis/JedisCluster.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/redis/clients/jedis/JedisCluster.java b/src/main/java/redis/clients/jedis/JedisCluster.java index d0f4edd630..00fb434616 100644 --- a/src/main/java/redis/clients/jedis/JedisCluster.java +++ b/src/main/java/redis/clients/jedis/JedisCluster.java @@ -792,7 +792,7 @@ public Set zrevrangeByScore(final String key, final double max, final do return new JedisClusterCommand>(connectionHandler, timeout, maxRedirections) { @Override public Set execute(Jedis connection) { - return connection.zrevrangeByScore(key, min, max); + return connection.zrevrangeByScore(key, max, min); } }.run(key); } @@ -813,7 +813,7 @@ public Set zrevrangeByScore(final String key, final String max, final St return new JedisClusterCommand>(connectionHandler, timeout, maxRedirections) { @Override public Set execute(Jedis connection) { - return connection.zrevrangeByScore(key, min, max); + return connection.zrevrangeByScore(key, max, min); } }.run(key); } @@ -835,7 +835,7 @@ public Set zrevrangeByScore(final String key, final double max, final do return new JedisClusterCommand>(connectionHandler, timeout, maxRedirections) { @Override public Set execute(Jedis connection) { - return connection.zrevrangeByScore(key, min, max, offset, count); + return connection.zrevrangeByScore(key, max, min, offset, count); } }.run(key); } @@ -855,7 +855,7 @@ public Set zrevrangeByScoreWithScores(final String key, final double max, return new JedisClusterCommand>(connectionHandler, timeout, maxRedirections) { @Override public Set execute(Jedis connection) { - return connection.zrevrangeByScoreWithScores(key, min, max); + return connection.zrevrangeByScoreWithScores(key, max, min); } }.run(key); } @@ -877,7 +877,7 @@ public Set zrevrangeByScore(final String key, final String max, final St return new JedisClusterCommand>(connectionHandler, timeout, maxRedirections) { @Override public Set execute(Jedis connection) { - return connection.zrevrangeByScore(key, min, max, offset, count); + return connection.zrevrangeByScore(key, max, min, offset, count); } }.run(key); } @@ -897,7 +897,7 @@ public Set zrevrangeByScoreWithScores(final String key, final String max, return new JedisClusterCommand>(connectionHandler, timeout, maxRedirections) { @Override public Set execute(Jedis connection) { - return connection.zrevrangeByScoreWithScores(key, min, max); + return connection.zrevrangeByScoreWithScores(key, max, min); } }.run(key); }