Reply with single null bulk for unsuccesful BRPOPLPUSH
This commit is contained in:
parent
452229b6fb
commit
d5870d7ac3
@ -941,7 +941,7 @@ void brpoplpushCommand(redisClient *c) {
|
|||||||
|
|
||||||
/* Blocking against an empty list in a multi state
|
/* Blocking against an empty list in a multi state
|
||||||
* returns immediately. */
|
* returns immediately. */
|
||||||
addReply(c, shared.nullmultibulk);
|
addReply(c, shared.nullbulk);
|
||||||
} else {
|
} else {
|
||||||
/* The list is empty and the client blocks. */
|
/* The list is empty and the client blocks. */
|
||||||
blockForKeys(c, c->argv + 1, 1, timeout, c->argv[2]);
|
blockForKeys(c, c->argv + 1, 1, timeout, c->argv[2]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user