Rename blpop_blocked_clients to bpop_blocked_clients

This commit is contained in:
Pieter Noordhuis
2010-12-06 14:05:01 +01:00
parent c8a0070a61
commit 5fa95ad763
3 changed files with 6 additions and 6 deletions

View File

@ -725,7 +725,7 @@ void blockForKeys(redisClient *c, robj **keys, int numkeys, time_t timeout, robj
}
/* Mark the client as a blocked client */
c->flags |= REDIS_BLOCKED;
server.blpop_blocked_clients++;
server.bpop_blocked_clients++;
}
/* Unblock a client that's waiting in a blocking operation such as BLPOP */
@ -753,7 +753,7 @@ void unblockClientWaitingData(redisClient *c) {
c->bpop.keys = NULL;
c->bpop.target = NULL;
c->flags &= (~REDIS_BLOCKED);
server.blpop_blocked_clients--;
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