]> git.saurik.com Git - redis.git/commitdiff
Clarify comment
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Mon, 31 Jan 2011 15:50:17 +0000 (16:50 +0100)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 3 Feb 2011 11:56:53 +0000 (12:56 +0100)
src/t_list.c

index c9ec2e67979d549f4268dd8fa0c5c663de0c7827..9e6590929a64e450f386e6550c66b3b6b33d3bc5 100644 (file)
@@ -826,7 +826,7 @@ int handleClientsWaitingListPush(redisClient *c, robj *key, robj *ele) {
             addReplyBulk(receiver,ele);
             return 1;
         } else {
             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);
             dstobj = lookupKeyWrite(receiver->db,dstkey);
             if (dstobj && checkType(receiver,dstobj,REDIS_LIST)) {
                 decrRefCount(dstkey);