From f371e721fae255137670208a62a69174734355ba Mon Sep 17 00:00:00 2001 From: woowenjie Date: Fri, 25 Nov 2011 10:34:05 +0800 Subject: [PATCH] clean REDIS_DIRTY_CAS when discard Command runs. otherwise the next MULTI/EXEC may fail in the same RedisClient --- src/multi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multi.c b/src/multi.c index 44036256d..5c8834005 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); }