Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
676740a9
Commit
676740a9
authored
Jun 15, 2010
by
Pieter Noordhuis
Browse files
fix BLPOP/BRPOP to use the wrapped function for list length
parent
5eedc9c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
676740a9
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment