Remove client from list of unblocked clients when it is free'd

This commit is contained in:
Pieter Noordhuis
2011-01-17 10:03:21 +01:00
parent b8cfcea424
commit 3bcffcbe5b
4 changed files with 12 additions and 1 deletions

View File

@ -773,7 +773,8 @@ void unblockClientWaitingData(redisClient *c) {
zfree(c->bpop.keys);
c->bpop.keys = NULL;
c->bpop.target = NULL;
c->flags &= (~REDIS_BLOCKED);
c->flags &= ~REDIS_BLOCKED;
c->flags |= REDIS_UNBLOCKED;
server.bpop_blocked_clients--;
listAddNodeTail(server.unblocked_clients,c);
}