Commit 6532df2e authored by woowenjie's avatar woowenjie Committed by antirez
Browse files

clean REDIS_DIRTY_CAS when discard Command runs. otherwise the next MULTI/EXEC...

clean REDIS_DIRTY_CAS when discard Command runs. otherwise the next MULTI/EXEC may fail in the same RedisClient
parent 8a82ee0f
...@@ -57,7 +57,7 @@ void discardCommand(redisClient *c) { ...@@ -57,7 +57,7 @@ void discardCommand(redisClient *c) {
freeClientMultiState(c); freeClientMultiState(c);
initClientMultiState(c); initClientMultiState(c);
c->flags &= (~REDIS_MULTI); c->flags &= ~(REDIS_MULTI|REDIS_DIRTY_CAS);;
unwatchAllKeys(c); unwatchAllKeys(c);
addReply(c,shared.ok); addReply(c,shared.ok);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment