mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
LPUSHX, RPUSHX, LINSERT only work on non-empty lists, so there are no clients waiting for a push
This commit is contained in:
parent
23d3a5feef
commit
7d288d6547
4
redis.c
4
redis.c
@ -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 ||
|
||||
checkType(c,subject,REDIS_LIST)) return;
|
||||
if (handleClientsWaitingListPush(c,c->argv[1],val)) {
|
||||
addReply(c,shared.cone);
|
||||
return;
|
||||
}
|
||||
|
||||
if (refval != NULL) {
|
||||
/* Note: we expect refval to be string-encoded because it is *not* the
|
||||
|
Loading…
x
Reference in New Issue
Block a user