Fix NPEs on Jedis closePipeline/exec after move

DATAREDIS-218
This commit is contained in:
Jennifer Hickey
2013-07-15 14:34:43 -07:00
parent 11e4b03dcb
commit 4f5eb9748a
6 changed files with 98 additions and 3 deletions

View File

@@ -723,11 +723,11 @@ public class JedisConnection implements RedisConnection {
public Boolean move(byte[] key, int dbIndex) {
try {
if (isQueueing()) {
client.move(key, dbIndex);
transaction.move(key, dbIndex);
return null;
}
if (isPipelined()) {
client.move(key, dbIndex);
pipeline.move(key, dbIndex);
return null;
}
return (jedis.move(key, dbIndex) == 1);