Fix Lettuce setBit and setRange executing twice in pipeline

DATAREDIS-224
This commit is contained in:
Jennifer Hickey
2013-07-18 15:35:25 -07:00
parent 3244981a00
commit 83a5683477

View File

@@ -908,6 +908,7 @@ public class LettuceConnection implements RedisConnection {
try {
if (isPipelined()) {
pipeline(getAsyncConnection().setbit(key, offset, LettuceUtils.asBit(value)));
return;
}
getConnection().setbit(key, offset, LettuceUtils.asBit(value));
} catch (Exception ex) {
@@ -920,6 +921,7 @@ public class LettuceConnection implements RedisConnection {
try {
if (isPipelined()) {
pipeline(getAsyncConnection().setrange(key, start, value));
return;
}
getConnection().setrange(key, start, value);
} catch (Exception ex) {