Commit 676740a9 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

fix BLPOP/BRPOP to use the wrapped function for list length

parent 5eedc9c6
...@@ -8236,8 +8236,7 @@ static void blockingPopGenericCommand(redisClient *c, int where) { ...@@ -8236,8 +8236,7 @@ static void blockingPopGenericCommand(redisClient *c, int where) {
addReply(c,shared.wrongtypeerr); addReply(c,shared.wrongtypeerr);
return; return;
} else { } else {
list *list = o->ptr; if (listTypeLength(o) != 0) {
if (listLength(list) != 0) {
/* If the list contains elements fall back to the usual /* If the list contains elements fall back to the usual
* non-blocking POP operation */ * non-blocking POP operation */
robj *argv[2], **orig_argv; robj *argv[2], **orig_argv;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment