diff options
author | woowenjie <woowenjie@gmail.com> | 2011-11-25 10:34:05 +0800 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-11-25 12:13:57 +0100 |
commit | 6532df2e7eddf3aa791f8c562f8c57baa07b6051 (patch) | |
tree | a533a5db30972b34b6550b36f084a8e286b627a3 | |
parent | 8a82ee0f3c97554f0a0d0f525df223da3b796aad (diff) | |
download | redis-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.c | 2 |
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); } |