mirror of
https://github.com/fluencelabs/redis
synced 2025-06-16 02:31:20 +00:00
clean REDIS_DIRTY_CAS when discard Command runs. otherwise the next MULTI/EXEC may fail in the same RedisClient
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user