Commit 2a95c944 authored by antirez's avatar antirez
Browse files

increment server.dirty in restore command to make sure it is replicated and...

increment server.dirty in restore command to make sure it is replicated and increments the dirty count for persistence concerns.
parent cd73df62
...@@ -1421,6 +1421,7 @@ void restoreCommand(redisClient *c) { ...@@ -1421,6 +1421,7 @@ void restoreCommand(redisClient *c) {
dbAdd(c->db,c->argv[1],obj); dbAdd(c->db,c->argv[1],obj);
if (ttl) setExpire(c->db,c->argv[1],time(NULL)+ttl); if (ttl) setExpire(c->db,c->argv[1],time(NULL)+ttl);
addReply(c,shared.ok); addReply(c,shared.ok);
server.dirty++;
} }
/* MIGRATE host port key dbid timeout */ /* MIGRATE host port key dbid timeout */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment