mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05: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:
parent
3c95e7212e
commit
f371e721fa
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user