AOF fixes in the context of replicaiton (when AOF is used by slave) and CONFIG SET appendonly yes/no.

This commit is contained in:
antirez
2011-12-15 16:07:49 +01:00
parent e074416be4
commit e7a2e7c1f7
4 changed files with 39 additions and 5 deletions

View File

@ -880,6 +880,7 @@ void initServerConfig() {
server.auto_aofrewrite_min_size = REDIS_AUTO_AOFREWRITE_MIN_SIZE;
server.auto_aofrewrite_base_size = 0;
server.aofrewrite_scheduled = 0;
server.aof_wait_rewrite = 0;
server.lastfsync = time(NULL);
server.appendfd = -1;
server.appendseldb = -1; /* Make sure the first time will not match */