mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
RENAME is now WATCH-aware
This commit is contained in:
parent
cef34df02a
commit
b167f87705
1
redis.c
1
redis.c
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user