Merge pull request #209 from woowenjie/unstable

clean REDIS_DIRTY_CAS when discard Command runs. otherwise the next MULT...
This commit is contained in:
Salvatore Sanfilippo 2011-11-25 03:13:10 -08:00
commit 07ac2daaaa

View File

@ -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);
}