Commit 74b77ff8 authored by antirez's avatar antirez
Browse files

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

parent 15da88c8
......@@ -180,7 +180,7 @@ void flushallCommand(redisClient *c) {
kill(server.bgsavechildpid,SIGKILL);
rdbRemoveTempFile(server.bgsavechildpid);
}
rdbSave(server.dbfilename);
if (server.saveparamslen > 0) rdbSave(server.dbfilename);
server.dirty++;
}
......
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