Skip to content

Commit

Permalink
JedisCluster.zrevrangeByScore: max, min are flipped to min, max in call
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSaVioR committed Dec 22, 2014
1 parent e5b6af2 commit d715de3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/redis/clients/jedis/JedisCluster.java
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ public Set<String> zrevrangeByScore(final String key, final double max, final do
return new JedisClusterCommand<Set<String>>(connectionHandler, timeout, maxRedirections) {
@Override
public Set<String> execute(Jedis connection) {
return connection.zrevrangeByScore(key, min, max);
return connection.zrevrangeByScore(key, max, min);
}
}.run(key);
}
Expand All @@ -813,7 +813,7 @@ public Set<String> zrevrangeByScore(final String key, final String max, final St
return new JedisClusterCommand<Set<String>>(connectionHandler, timeout, maxRedirections) {
@Override
public Set<String> execute(Jedis connection) {
return connection.zrevrangeByScore(key, min, max);
return connection.zrevrangeByScore(key, max, min);
}
}.run(key);
}
Expand All @@ -835,7 +835,7 @@ public Set<String> zrevrangeByScore(final String key, final double max, final do
return new JedisClusterCommand<Set<String>>(connectionHandler, timeout, maxRedirections) {
@Override
public Set<String> execute(Jedis connection) {
return connection.zrevrangeByScore(key, min, max, offset, count);
return connection.zrevrangeByScore(key, max, min, offset, count);
}
}.run(key);
}
Expand All @@ -855,7 +855,7 @@ public Set<Tuple> zrevrangeByScoreWithScores(final String key, final double max,
return new JedisClusterCommand<Set<Tuple>>(connectionHandler, timeout, maxRedirections) {
@Override
public Set<Tuple> execute(Jedis connection) {
return connection.zrevrangeByScoreWithScores(key, min, max);
return connection.zrevrangeByScoreWithScores(key, max, min);
}
}.run(key);
}
Expand All @@ -877,7 +877,7 @@ public Set<String> zrevrangeByScore(final String key, final String max, final St
return new JedisClusterCommand<Set<String>>(connectionHandler, timeout, maxRedirections) {
@Override
public Set<String> execute(Jedis connection) {
return connection.zrevrangeByScore(key, min, max, offset, count);
return connection.zrevrangeByScore(key, max, min, offset, count);
}
}.run(key);
}
Expand All @@ -897,7 +897,7 @@ public Set<Tuple> zrevrangeByScoreWithScores(final String key, final String max,
return new JedisClusterCommand<Set<Tuple>>(connectionHandler, timeout, maxRedirections) {
@Override
public Set<Tuple> execute(Jedis connection) {
return connection.zrevrangeByScoreWithScores(key, min, max);
return connection.zrevrangeByScoreWithScores(key, max, min);
}
}.run(key);
}
Expand Down

0 comments on commit d715de3

Please sign in to comment.