increment server.dirty in restore command to make sure it is replicated and increments the dirty count for persistence concerns.

This commit is contained in:
antirez 2011-10-03 15:45:14 +02:00
parent cd73df62af
commit 2a95c944ff

View File

@ -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 */