Fix Lettuce setBit and setRange executing twice in pipeline

DATAREDIS-224
This commit is contained in:
Jennifer Hickey
2013-07-18 15:37:52 -07:00
parent 6d21cda407
commit 136ad487a8

View File

@@ -1051,6 +1051,7 @@ public class LettuceConnection implements RedisConnection {
try {
if (isPipelined()) {
pipeline(new LettuceStatusResult(getAsyncConnection().setbit(key, offset, LettuceConverters.toInt(value))));
return;
}
getConnection().setbit(key, offset, LettuceConverters.toInt(value));
} catch (Exception ex) {
@@ -1063,6 +1064,7 @@ public class LettuceConnection implements RedisConnection {
try {
if (isPipelined()) {
pipeline(new LettuceStatusResult(getAsyncConnection().setrange(key, start, value)));
return;
}
getConnection().setrange(key, start, value);
} catch (Exception ex) {