]> git.saurik.com Git - redis.git/commitdiff
LPUSHX, RPUSHX, LINSERT only work on non-empty lists, so there are no clients waiting...
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Fri, 11 Jun 2010 15:35:48 +0000 (17:35 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Fri, 11 Jun 2010 15:35:48 +0000 (17:35 +0200)
redis.c

diff --git a/redis.c b/redis.c
index b563c4d5c3d731c0952bfd4803e042d9845cc745..2b0e5d37a6164147adf195369086f784683d352c 100644 (file)
--- a/redis.c
+++ b/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