]> git.saurik.com Git - redis.git/blobdiff - src/cluster.c
increment server.dirty in restore command to make sure it is replicated and increment...
[redis.git] / src / cluster.c
index ce75b83e739412ede64000aedb9f698cd9f71724..2df3cfcf9a7845143feed32552e9a9459e0eab4b 100644 (file)
@@ -1421,6 +1421,7 @@ void restoreCommand(redisClient *c) {
     dbAdd(c->db,c->argv[1],obj);
     if (ttl) setExpire(c->db,c->argv[1],time(NULL)+ttl);
     addReply(c,shared.ok);
+    server.dirty++;
 }
 
 /* MIGRATE host port key dbid timeout */