Unify two client flags that mean the same

This commit is contained in:
Pieter Noordhuis
2010-10-28 15:07:45 +01:00
parent a375b077cc
commit 5e78edb350
3 changed files with 7 additions and 9 deletions

View File

@ -893,10 +893,10 @@ int processCommand(redisClient *c) {
* go through checking for replication and QUIT will cause trouble
* when FORCE_REPLICATION is enabled and would be implemented in
* a regular command proc. */
redisAssert(!(c->flags & REDIS_QUIT));
redisAssert(!(c->flags & REDIS_CLOSE_AFTER_REPLY));
if (!strcasecmp(c->argv[0]->ptr,"quit")) {
c->flags |= REDIS_QUIT;
addReply(c,shared.ok);
c->flags |= REDIS_CLOSE_AFTER_REPLY;
return REDIS_ERR;
}