Clear the AOF rewrite scheduled flag once an AOF rewrite is triggered. Fix for issue #161, probably fixing 159 as well.

This commit is contained in:
antirez
2011-10-26 12:53:30 +02:00
parent 45bd4a1853
commit 15c9497280

View File

@ -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