Commit 15c94972 authored by antirez's avatar antirez
Browse files

Clear the AOF rewrite scheduled flag once an AOF rewrite is triggered. Fix for...

Clear the AOF rewrite scheduled flag once an AOF rewrite is triggered. Fix for issue #161, probably fixing 159 as well.
parent 45bd4a18
...@@ -691,6 +691,7 @@ int rewriteAppendOnlyFileBackground(void) { ...@@ -691,6 +691,7 @@ int rewriteAppendOnlyFileBackground(void) {
} }
redisLog(REDIS_NOTICE, redisLog(REDIS_NOTICE,
"Background append only file rewriting started by pid %d",childpid); "Background append only file rewriting started by pid %d",childpid);
server.aofrewrite_scheduled = 0;
server.bgrewritechildpid = childpid; server.bgrewritechildpid = childpid;
updateDictResizePolicy(); updateDictResizePolicy();
/* We set appendseldb to -1 in order to force the next call to the /* We set appendseldb to -1 in order to force the next call to the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment