Fix RJC zRevRangeWithScores returns incorrect results
DATAREDIS-137
This commit is contained in:
@@ -1670,16 +1670,14 @@ public class RjcConnection implements RedisConnection {
|
||||
|
||||
public Set<Tuple> zRevRangeWithScores(byte[] key, long start, long end) {
|
||||
String stringKey = RjcUtils.decode(key);
|
||||
String minString = Long.toString(start);
|
||||
String maxString = Long.toString(end);
|
||||
|
||||
try {
|
||||
|
||||
if (isPipelined()) {
|
||||
pipeline.zrevrangeByScoreWithScores(stringKey, minString, maxString);
|
||||
pipeline.zrevrangeWithScores(stringKey, (int) start, (int) end);
|
||||
return null;
|
||||
}
|
||||
return RjcUtils.convertElementScore(session.zrevrangeByScoreWithScores(stringKey, minString, maxString));
|
||||
return RjcUtils.convertElementScore(session.zrevrangeWithScores(stringKey, (int) start, (int) end));
|
||||
} catch (Exception ex) {
|
||||
throw convertRjcAccessException(ex);
|
||||
}
|
||||
|
||||
@@ -104,10 +104,6 @@ public class RjcConnectionIntegrationTests extends AbstractConnectionIntegration
|
||||
public void testPubSubWithPatterns() {
|
||||
}
|
||||
|
||||
@Ignore("DATAREDIS-137 zRevRangeWithScores returns incorrect results")
|
||||
public void testZRevRangeWithScores() {
|
||||
}
|
||||
|
||||
@Ignore("DATAREDIS-148 Syntax error on RJC zUnionStore")
|
||||
public void testZUnionStoreAggWeights() {
|
||||
}
|
||||
|
||||
@@ -85,10 +85,6 @@ public class RjcConnectionPipelineIntegrationTests extends
|
||||
public void testStrLen() {
|
||||
}
|
||||
|
||||
@Ignore("DATAREDIS-137 zRevRangeWithScores returns incorrect results")
|
||||
public void testZRevRangeWithScores() {
|
||||
}
|
||||
|
||||
@Ignore("DATAREDIS-148 Syntax error on RJC zUnionStore")
|
||||
public void testZUnionStoreAggWeights() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user