From: antirez Date: Thu, 20 Oct 2011 09:17:30 +0000 (+0200) Subject: use signalModifiedKey to set the key as dirty in the context of WATCH for both MIGRAT... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/73fac227a0dd3a7d25e29b4718f8588f55db07d6?ds=inline;hp=-c use signalModifiedKey to set the key as dirty in the context of WATCH for both MIGRATE and RESTORE. --- 73fac227a0dd3a7d25e29b4718f8588f55db07d6 diff --git a/src/cluster.c b/src/cluster.c index ccb230c9..42b01113 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -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++;