Skip to content

Commit

Permalink
Fix ZREVRANGE versions with max/min swapped in MultiNodePipelineBase (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 authored Mar 23, 2024
1 parent 3577f93 commit 19bb94e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/redis/clients/jedis/MultiNodePipelineBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -2863,7 +2863,7 @@ public Response<List<byte[]>> zrangeByScore(byte[] key, byte[] min, byte[] max)

@Override
public Response<List<byte[]>> zrevrangeByScore(byte[] key, double max, double min) {
return appendCommand(commandObjects.zrevrangeByScore(key, min, max));
return appendCommand(commandObjects.zrevrangeByScore(key, max, min));
}

@Override
Expand All @@ -2873,7 +2873,7 @@ public Response<List<byte[]>> zrangeByScore(byte[] key, double min, double max,

@Override
public Response<List<byte[]>> zrevrangeByScore(byte[] key, byte[] max, byte[] min) {
return appendCommand(commandObjects.zrevrangeByScore(key, min, max));
return appendCommand(commandObjects.zrevrangeByScore(key, max, min));
}

@Override
Expand All @@ -2883,7 +2883,7 @@ public Response<List<byte[]>> zrangeByScore(byte[] key, byte[] min, byte[] max,

@Override
public Response<List<byte[]>> zrevrangeByScore(byte[] key, double max, double min, int offset, int count) {
return appendCommand(commandObjects.zrevrangeByScore(key, min, max, offset, count));
return appendCommand(commandObjects.zrevrangeByScore(key, max, min, offset, count));
}

@Override
Expand All @@ -2903,7 +2903,7 @@ public Response<List<Tuple>> zrangeByScoreWithScores(byte[] key, double min, dou

@Override
public Response<List<byte[]>> zrevrangeByScore(byte[] key, byte[] max, byte[] min, int offset, int count) {
return appendCommand(commandObjects.zrevrangeByScore(key, min, max, offset, count));
return appendCommand(commandObjects.zrevrangeByScore(key, max, min, offset, count));
}

@Override
Expand Down Expand Up @@ -2963,12 +2963,12 @@ public Response<List<byte[]>> zrangeByLex(byte[] key, byte[] min, byte[] max, in

@Override
public Response<List<byte[]>> zrevrangeByLex(byte[] key, byte[] max, byte[] min) {
return appendCommand(commandObjects.zrevrangeByLex(key, min, max));
return appendCommand(commandObjects.zrevrangeByLex(key, max, min));
}

@Override
public Response<List<byte[]>> zrevrangeByLex(byte[] key, byte[] max, byte[] min, int offset, int count) {
return appendCommand(commandObjects.zrevrangeByLex(key, min, max, offset, count));
return appendCommand(commandObjects.zrevrangeByLex(key, max, min, offset, count));
}

@Override
Expand Down

0 comments on commit 19bb94e

Please sign in to comment.