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

This commit is contained in:
antirez 2011-10-17 10:25:35 +02:00
parent 15da88c8dc
commit 74b77ff8a6

View File

@ -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++;
}