]> git.saurik.com Git - redis.git/commitdiff
Clear the AOF rewrite scheduled flag once an AOF rewrite is triggered. Fix for issue...
authorantirez <antirez@gmail.com>
Wed, 26 Oct 2011 10:53:30 +0000 (12:53 +0200)
committerantirez <antirez@gmail.com>
Wed, 26 Oct 2011 10:53:30 +0000 (12:53 +0200)
src/aof.c

index 2a2be8961a37f16d76777fff873f828ecbda0cad..66516f7879b267a86ea8bd575563b10137cacd5a 100644 (file)
--- 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