Skip to content

Commit

Permalink
FLUSHALL will only perform a blocking SAVE if RDB persistence is conf…
Browse files Browse the repository at this point in the history
…igured.
  • Loading branch information
antirez committed Oct 17, 2011
1 parent 6d61e5b commit 42a6fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void flushallCommand(redisClient *c) {
kill(server.bgsavechildpid,SIGKILL);
rdbRemoveTempFile(server.bgsavechildpid);
}
rdbSave(server.dbfilename);
if (server.saveparamslen > 0) rdbSave(server.dbfilename);
server.dirty++;
}

Expand Down

0 comments on commit 42a6fcd

Please sign in to comment.