Skip to content
Browse files

Clear the AOF rewrite scheduled flag once an AOF rewrite is triggered…

…. Fix for issue #161, probably fixing 159 as well.
  • Loading branch information...
1 parent 45bd4a1 commit 15c9497280ba2aa4a4f14ff863ac8815559f70fa @antirez committed Oct 26, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/aof.c
View
1 src/aof.c
@@ -691,6 +691,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

0 comments on commit 15c9497

Please sign in to comment.
Something went wrong with that request. Please try again.