From: antirez Date: Mon, 3 Oct 2011 13:45:14 +0000 (+0200) Subject: increment server.dirty in restore command to make sure it is replicated and increment... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/2a95c944ff743df91ad7a20d9486a90fcc231cb3 increment server.dirty in restore command to make sure it is replicated and increments the dirty count for persistence concerns. --- diff --git a/src/cluster.c b/src/cluster.c index ce75b83e..2df3cfcf 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -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 */