From: antirez Date: Wed, 26 Oct 2011 10:53:30 +0000 (+0200) Subject: Clear the AOF rewrite scheduled flag once an AOF rewrite is triggered. Fix for issue... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/b508aeb994ffebd93fa5c3238057dfa2101d0424?ds=inline Clear the AOF rewrite scheduled flag once an AOF rewrite is triggered. Fix for issue #161, probably fixing 159 as well. --- diff --git a/src/aof.c b/src/aof.c index 2a2be896..66516f78 100644 --- a/src/aof.c +++ b/src/aof.c @@ -683,6 +683,7 @@ int rewriteAppendOnlyFileBackground(void) { } redisLog(REDIS_NOTICE, "Background append only file rewriting started by pid %d",childpid); + server.aofrewrite_scheduled = 0; server.bgrewritechildpid = childpid; updateDictResizePolicy(); /* We set appendseldb to -1 in order to force the next call to the