First implementation of the ASKING command. Semantics still to verify.

This commit is contained in:
antirez
2011-10-17 17:35:23 +02:00
parent e0aab1fc79
commit 6856c7b4d6
4 changed files with 23 additions and 2 deletions

View File

@ -625,6 +625,8 @@ void resetClient(redisClient *c) {
c->reqtype = 0;
c->multibulklen = 0;
c->bulklen = -1;
/* We clear the ASKING flag as well if we are not inside a MULTI. */
if (!(c->flags & REDIS_MULTI)) c->flags &= (~REDIS_ASKING);
}
void closeTimedoutClients(void) {