提交 2a95c944 编写于 作者: A antirez

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.
上级 cd73df62
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册