RENAME is now WATCH-aware

This commit is contained in:
antirez 2010-05-25 21:26:10 +02:00
parent cef34df02a
commit b167f87705

View File

@ -4683,6 +4683,7 @@ static void renameGenericCommand(redisClient *c, int nx) {
incrRefCount(c->argv[2]); incrRefCount(c->argv[2]);
} }
deleteKey(c->db,c->argv[1]); deleteKey(c->db,c->argv[1]);
touchWatchedKey(c->db,c->argv[2]);
server.dirty++; server.dirty++;
addReply(c,nx ? shared.cone : shared.ok); addReply(c,nx ? shared.cone : shared.ok);
} }