]> git.saurik.com Git - redis.git/commitdiff
increment server.dirty in restore command to make sure it is replicated and increment...
authorantirez <antirez@gmail.com>
Mon, 3 Oct 2011 13:45:14 +0000 (15:45 +0200)
committerantirez <antirez@gmail.com>
Mon, 3 Oct 2011 13:45:14 +0000 (15:45 +0200)
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 */