From 42a6fcd6c59f7a51d0bda011e55e50960a28cfb5 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 17 Oct 2011 10:25:35 +0200 Subject: [PATCH] FLUSHALL will only perform a blocking SAVE if RDB persistence is configured. --- src/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- 2.45.2