X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/36c17a53b6aece050b79b667fd32064f6eb116c2..9ad853ccde374ed371efee3b1654c6ebb39e06fa:/src/aof.c diff --git a/src/aof.c b/src/aof.c index 723d845f..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]; @@ -633,7 +636,7 @@ void backgroundRewriteDoneHandler(int exitcode, int bysignal) { } else { redisLog(REDIS_WARNING, "Background append only file rewriting terminated by signal %d", - bysitnal); + bysignal); } cleanup: sdsfree(server.bgrewritebuf);