]> git.saurik.com Git - redis.git/commitdiff
Merge remote branch 'pietern/unstable-brpoplpush' into unstable
authorantirez <antirez@gmail.com>
Mon, 7 Feb 2011 14:28:01 +0000 (15:28 +0100)
committerantirez <antirez@gmail.com>
Mon, 7 Feb 2011 14:28:01 +0000 (15:28 +0100)
src/t_list.c

index 1c658353509f37bed0a12728ac7d1b54bca1835f..9e6590929a64e450f386e6550c66b3b6b33d3bc5 100644 (file)
@@ -826,7 +826,7 @@ int handleClientsWaitingListPush(redisClient *c, robj *key, robj *ele) {
             addReplyBulk(receiver,ele);
             return 1;
         } else {
-            /* BRPOPLPUSH */
+            /* BRPOPLPUSH, note that receiver->db is always equal to c->db. */
             dstobj = lookupKeyWrite(receiver->db,dstkey);
             if (dstobj && checkType(receiver,dstobj,REDIS_LIST)) {
                 decrRefCount(dstkey);
@@ -941,7 +941,7 @@ void brpoplpushCommand(redisClient *c) {
 
             /* Blocking against an empty list in a multi state
              * returns immediately. */
-            addReply(c, shared.nullmultibulk);
+            addReply(c, shared.nullbulk);
         } else {
             /* The list is empty and the client blocks. */
             blockForKeys(c, c->argv + 1, 1, timeout, c->argv[2]);