]> git.saurik.com Git - redis.git/commitdiff
DISCSARD now unwatches all keys, as it should
authorantirez <antirez@gmail.com>
Fri, 4 Jun 2010 19:19:06 +0000 (21:19 +0200)
committerantirez <antirez@gmail.com>
Fri, 4 Jun 2010 19:19:06 +0000 (21:19 +0200)
redis.c

diff --git a/redis.c b/redis.c
index d507adae19a7568814e9b206bc3c7ed8c5512fd0..00a5a80ce2f6de8b763e1dd058eece83f9a7bebb 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -7918,6 +7918,7 @@ static void discardCommand(redisClient *c) {
     freeClientMultiState(c);
     initClientMultiState(c);
     c->flags &= (~REDIS_MULTI);
+    unwatchAllKeys(c);
     addReply(c,shared.ok);
 }