mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
fix BLPOP/BRPOP to use the wrapped function for list length
This commit is contained in:
parent
5eedc9c65e
commit
676740a960
3
redis.c
3
redis.c
@ -8236,8 +8236,7 @@ static void blockingPopGenericCommand(redisClient *c, int where) {
|
||||
addReply(c,shared.wrongtypeerr);
|
||||
return;
|
||||
} else {
|
||||
list *list = o->ptr;
|
||||
if (listLength(list) != 0) {
|
||||
if (listTypeLength(o) != 0) {
|
||||
/* If the list contains elements fall back to the usual
|
||||
* non-blocking POP operation */
|
||||
robj *argv[2], **orig_argv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user