diff --git a/src/db.c b/src/db.c index e38466d3b..24851385e 100644 --- a/src/db.c +++ b/src/db.c @@ -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++; }