summaryrefslogtreecommitdiff
path: root/src/blocked.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-03-21 09:13:29 +0100
committerantirez <antirez@gmail.com>2015-03-21 09:13:29 +0100
commit2b278a3394ab6b32b4bdcb7db56323649622f784 (patch)
tree9f70792efcb668f752076f76b0928f309af03190 /src/blocked.c
parent5fe4a2313177a8c9bcd231dacda38317da17a3cf (diff)
downloadredis-2b278a3394ab6b32b4bdcb7db56323649622f784.tar.gz
Net: processUnblockedClients() and clientsArePaused() minor changes.
1. No need to set btype in processUnblockedClients(), since clients flagged REDIS_UNBLOCKED should have it already cleared. 2. When putting clients in the unblocked clients list, clientsArePaused() should flag them with REDIS_UNBLOCKED. Not strictly needed with the current code but is more coherent.
Diffstat (limited to 'src/blocked.c')
-rw-r--r--src/blocked.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/blocked.c b/src/blocked.c
index ef0d5246d..3509dd134 100644
--- a/src/blocked.c
+++ b/src/blocked.c
@@ -114,7 +114,6 @@ void processUnblockedClients(void) {
c = ln->value;
listDelNode(server.unblocked_clients,ln);
c->flags &= ~REDIS_UNBLOCKED;
- c->btype = REDIS_BLOCKED_NONE;
/* Process remaining data in the input buffer. */
if (c->querybuf && sdslen(c->querybuf) > 0) {