]> git.saurik.com Git - redis.git/commitdiff
RENAME is now WATCH-aware
authorantirez <antirez@gmail.com>
Tue, 25 May 2010 19:26:10 +0000 (21:26 +0200)
committerantirez <antirez@gmail.com>
Tue, 25 May 2010 19:26:10 +0000 (21:26 +0200)
redis.c

diff --git a/redis.c b/redis.c
index 40a32282d80725f156941ed8cc9cc2cce908c5b8..f11ca5856c62a71256f4c3b284be2d222d366a4f 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -4683,6 +4683,7 @@ static void renameGenericCommand(redisClient *c, int nx) {
         incrRefCount(c->argv[2]);
     }
     deleteKey(c->db,c->argv[1]);
+    touchWatchedKey(c->db,c->argv[2]);
     server.dirty++;
     addReply(c,nx ? shared.cone : shared.ok);
 }