X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/5b8ce85378f3b0887db254a20d1ae2cb7ad0ad55..9ad853ccde374ed371efee3b1654c6ebb39e06fa:/src/aof.c diff --git a/src/aof.c b/src/aof.c index 0c25cf6c..56392f2a 100644 --- a/src/aof.c +++ b/src/aof.c @@ -529,7 +529,10 @@ int rewriteAppendOnlyFileBackground(void) { pid_t childpid; if (server.bgrewritechildpid != -1) return REDIS_ERR; - redisAssert(server.ds_enabled == 0); + if (server.ds_enabled != 0) { + redisLog(REDIS_WARNING,"BGREWRITEAOF called with diskstore enabled: AOF is not supported when diskstore is enabled. Operation not performed."); + return REDIS_ERR; + } if ((childpid = fork()) == 0) { /* Child */ char tmpfile[256];