Fix Lettuce zCount/zInterStore ops executing synchronously while in pipeline

DATAREDIS-140
This commit is contained in:
Jennifer Hickey
2013-04-01 10:22:33 -07:00
parent a40555ed19
commit 97ebd34b2d
2 changed files with 3 additions and 15 deletions

View File

@@ -1321,7 +1321,7 @@ public class LettuceConnection implements RedisConnection {
public Long zCount(byte[] key, double min, double max) {
try {
if (isQueueing()) {
if (isPipelined()) {
pipeline(asyncConn.zcount(key, min, max));
return null;
}
@@ -1347,7 +1347,7 @@ public class LettuceConnection implements RedisConnection {
ZStoreArgs storeArgs = LettuceUtils.zArgs(aggregate, weights);
try {
if (isQueueing()) {
if (isPipelined()) {
pipeline(asyncConn.zinterstore(destKey, storeArgs, sets));
return null;
}
@@ -1360,7 +1360,7 @@ public class LettuceConnection implements RedisConnection {
public Long zInterStore(byte[] destKey, byte[]... sets) {
try {
if (isQueueing()) {
if (isPipelined()) {
pipeline(asyncConn.zinterstore(destKey, sets));
return null;
}