summaryrefslogtreecommitdiff
path: root/src/cluster.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-10-20 11:17:30 +0200
committerantirez <antirez@gmail.com>2011-10-20 11:17:30 +0200
commit73fac227a0dd3a7d25e29b4718f8588f55db07d6 (patch)
tree49722665075e86d344807aae0f50c56009381996 /src/cluster.c
parent34296ae890178926347f0b8b47f66d96a541f1c3 (diff)
downloadredis-73fac227a0dd3a7d25e29b4718f8588f55db07d6.tar.gz
use signalModifiedKey to set the key as dirty in the context of WATCH for both MIGRATE and RESTORE.
Diffstat (limited to 'src/cluster.c')
-rw-r--r--src/cluster.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cluster.c b/src/cluster.c
index ccb230c91..42b011136 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++;