Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7d288d65
Commit
7d288d65
authored
Jun 11, 2010
by
Pieter Noordhuis
Browse files
LPUSHX, RPUSHX, LINSERT only work on non-empty lists, so there are no clients waiting for a push
parent
23d3a5fe
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
7d288d65
...
@@ -5219,10 +5219,6 @@ static void pushxGenericCommand(redisClient *c, robj *refval, robj *val, int whe
...
@@ -5219,10 +5219,6 @@ static void pushxGenericCommand(redisClient *c, robj *refval, robj *val, int whe
if ((subject = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == NULL ||
if ((subject = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == NULL ||
checkType(c,subject,REDIS_LIST)) return;
checkType(c,subject,REDIS_LIST)) return;
if (handleClientsWaitingListPush(c,c->argv[1],val)) {
addReply(c,shared.cone);
return;
}
if (refval != NULL) {
if (refval != NULL) {
/* Note: we expect refval to be string-encoded because it is *not* the
/* Note: we expect refval to be string-encoded because it is *not* the
...
...
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