]> git.saurik.com Git - redis.git/commitdiff
Reply with single null bulk for unsuccesful BRPOPLPUSH
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Mon, 31 Jan 2011 15:49:56 +0000 (16:49 +0100)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 3 Feb 2011 11:56:50 +0000 (12:56 +0100)
src/t_list.c

index 1c658353509f37bed0a12728ac7d1b54bca1835f..c9ec2e67979d549f4268dd8fa0c5c663de0c7827 100644 (file)
@@ -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]);