Reply with single null bulk for unsuccesful BRPOPLPUSH

This commit is contained in:
Pieter Noordhuis 2011-01-31 16:49:56 +01:00
parent 317f61ad26
commit f9120df538

View 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]);