From: antirez Date: Mon, 17 Oct 2011 08:25:35 +0000 (+0200) Subject: FLUSHALL will only perform a blocking SAVE if RDB persistence is configured. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/42a6fcd6c59f7a51d0bda011e55e50960a28cfb5 FLUSHALL will only perform a blocking SAVE if RDB persistence is configured. --- diff --git a/src/db.c b/src/db.c index 9620b6e8..40b8148c 100644 --- a/src/db.c +++ b/src/db.c @@ -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++; }