提交 74b77ff8 编写于 作者: A antirez

FLUSHALL will only perform a blocking SAVE if RDB persistence is configured.

上级 15da88c8
...@@ -180,7 +180,7 @@ void flushallCommand(redisClient *c) { ...@@ -180,7 +180,7 @@ void flushallCommand(redisClient *c) {
kill(server.bgsavechildpid,SIGKILL); kill(server.bgsavechildpid,SIGKILL);
rdbRemoveTempFile(server.bgsavechildpid); rdbRemoveTempFile(server.bgsavechildpid);
} }
rdbSave(server.dbfilename); if (server.saveparamslen > 0) rdbSave(server.dbfilename);
server.dirty++; server.dirty++;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册