X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/fc96409f9193a7fda1dd509d16769272453f36c0..2c915bcf6d62e2e8d0868cddfda896fc989bc81f:/src/replication.c diff --git a/src/replication.c b/src/replication.c index 2be03c1b..d671acc2 100644 --- a/src/replication.c +++ b/src/replication.c @@ -361,7 +361,7 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) { /* Restart the AOF subsystem now that we finished the sync. This * will trigger an AOF rewrite, and when done will start appending * to the new file. */ - if (server.appendonly) { + if (server.aof_state != REDIS_AOF_OFF) { int retry = 10; stopAppendOnly();