From: woowenjie Date: Fri, 25 Nov 2011 02:34:05 +0000 (+0800) Subject: clean REDIS_DIRTY_CAS when discard Command runs. otherwise the next MULTI/EXEC may... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/f371e721fae255137670208a62a69174734355ba clean REDIS_DIRTY_CAS when discard Command runs. otherwise the next MULTI/EXEC may fail in the same RedisClient --- diff --git a/src/multi.c b/src/multi.c index 44036256..5c883400 100644 --- a/src/multi.c +++ b/src/multi.c @@ -57,7 +57,7 @@ void discardCommand(redisClient *c) { freeClientMultiState(c); initClientMultiState(c); - c->flags &= (~REDIS_MULTI); + c->flags &= ~(REDIS_MULTI|REDIS_DIRTY_CAS);; unwatchAllKeys(c); addReply(c,shared.ok); }