X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/3bcffcbe5bc0acde311d0fb311f893400cd52e0e..0b10e1044496699585b401196dd86e19a9f87cc4:/src/t_list.c diff --git a/src/t_list.c b/src/t_list.c index 1c658353..9e659092 100644 --- a/src/t_list.c +++ b/src/t_list.c @@ -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]);