From b508aeb994ffebd93fa5c3238057dfa2101d0424 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 26 Oct 2011 12:53:30 +0200 Subject: [PATCH] Clear the AOF rewrite scheduled flag once an AOF rewrite is triggered. Fix for issue #161, probably fixing 159 as well. --- src/aof.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.45.2