]> git.saurik.com Git - redis.git/blobdiff - src/t_list.c
Don't execute commands for clients when they are unblocked
[redis.git] / src / t_list.c
index 867e258a1e22ef6add9ca45925e381aebe55c75c..7dc3f13934aa612e67abaad94c9a0671c87b11b0 100644 (file)
@@ -759,12 +759,7 @@ void unblockClientWaitingData(redisClient *c) {
     c->bpop.target = NULL;
     c->flags &= (~REDIS_BLOCKED);
     server.bpop_blocked_clients--;
-    /* We want to process data if there is some command waiting
-     * in the input buffer. Note that this is safe even if
-     * unblockClientWaitingData() gets called from freeClient() because
-     * freeClient() will be smart enough to call this function
-     * *after* c->querybuf was set to NULL. */
-    if (c->querybuf && sdslen(c->querybuf) > 0) processInputBuffer(c);
+    listAddNodeTail(server.unblocked_clients,c);
 }
 
 /* This should be called from any function PUSHing into lists.