summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwoowenjie <woowenjie@gmail.com>2011-11-25 10:34:05 +0800
committerantirez <antirez@gmail.com>2011-11-25 12:13:57 +0100
commit6532df2e7eddf3aa791f8c562f8c57baa07b6051 (patch)
treea533a5db30972b34b6550b36f084a8e286b627a3
parent8a82ee0f3c97554f0a0d0f525df223da3b796aad (diff)
downloadredis-6532df2e7eddf3aa791f8c562f8c57baa07b6051.tar.gz
clean REDIS_DIRTY_CAS when discard Command runs. otherwise the next MULTI/EXEC may fail in the same RedisClient
-rw-r--r--src/multi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multi.c b/src/multi.c
index f0b8fc856..db8714b52 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);
}