Skip to content

Commit

Permalink
Clear the AOF rewrite scheduled flag once an AOF rewrite is triggered…
Browse files Browse the repository at this point in the history
…. Fix for issue #161, probably fixing 159 as well.
  • Loading branch information
antirez committed Oct 26, 2011
1 parent e089e61 commit b508aeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aof.c
Expand Up @@ -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
Expand Down

0 comments on commit b508aeb

Please sign in to comment.