]> git.saurik.com Git - redis.git/commitdiff
use signalModifiedKey to set the key as dirty in the context of WATCH for both MIGRAT...
authorantirez <antirez@gmail.com>
Thu, 20 Oct 2011 09:17:30 +0000 (11:17 +0200)
committerantirez <antirez@gmail.com>
Thu, 20 Oct 2011 09:17:30 +0000 (11:17 +0200)
src/cluster.c

index ccb230c91777f338062842ef64c18e5580c7807b..42b0111366f4b456f5d8d790534946972914064c 100644 (file)
@@ -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++;