mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
use signalModifiedKey to set the key as dirty in the context of WATCH for both MIGRATE and RESTORE.
This commit is contained in:
parent
34296ae890
commit
73fac227a0
@ -1506,6 +1506,7 @@ void restoreCommand(redisClient *c) {
|
||||
/* Create the key and set the TTL if any */
|
||||
dbAdd(c->db,c->argv[1],obj);
|
||||
if (ttl) setExpire(c->db,c->argv[1],time(NULL)+ttl);
|
||||
signalModifiedKey(c->db,c->argv[1]);
|
||||
addReply(c,shared.ok);
|
||||
server.dirty++;
|
||||
}
|
||||
@ -1598,6 +1599,7 @@ void migrateCommand(redisClient *c) {
|
||||
robj *aux;
|
||||
|
||||
dbDelete(c->db,c->argv[3]);
|
||||
signalModifiedKey(c->db,c->argv[3]);
|
||||
addReply(c,shared.ok);
|
||||
server.dirty++;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user