Rename bstate to bpop.

This commit is contained in:
Damian Janowski & Michel Martens
2010-11-09 15:06:25 -03:00
committed by Michel Martens
parent 59bd44d1c8
commit e3c51c4b1b
3 changed files with 25 additions and 25 deletions

View File

@ -41,10 +41,10 @@ redisClient *createClient(int fd) {
c->reply = listCreate();
listSetFreeMethod(c->reply,decrRefCount);
listSetDupMethod(c->reply,dupClientReplyValue);
c->bstate.keys = NULL;
c->bstate.count = 0;
c->bstate.timeout = 0;
c->bstate.target = NULL;
c->bpop.keys = NULL;
c->bpop.count = 0;
c->bpop.timeout = 0;
c->bpop.target = NULL;
c->io_keys = listCreate();
c->watched_keys = listCreate();
listSetFreeMethod(c->io_keys,decrRefCount);
@ -679,7 +679,7 @@ void closeTimedoutClients(void) {
redisLog(REDIS_VERBOSE,"Closing idle client");
freeClient(c);
} else if (c->flags & REDIS_BLOCKED) {
if (c->bstate.timeout != 0 && c->bstate.timeout < now) {
if (c->bpop.timeout != 0 && c->bpop.timeout < now) {
addReply(c,shared.nullmultibulk);
unblockClientWaitingData(c);
}