mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
DISCSARD now unwatches all keys, as it should
This commit is contained in:
parent
ab193fe452
commit
a26452263f
1
redis.c
1
redis.c
@ -7918,6 +7918,7 @@ static void discardCommand(redisClient *c) {
|
|||||||
freeClientMultiState(c);
|
freeClientMultiState(c);
|
||||||
initClientMultiState(c);
|
initClientMultiState(c);
|
||||||
c->flags &= (~REDIS_MULTI);
|
c->flags &= (~REDIS_MULTI);
|
||||||
|
unwatchAllKeys(c);
|
||||||
addReply(c,shared.ok);
|
addReply(c,shared.ok);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user