]> git.saurik.com Git - redis.git/blobdiff - src/replication.c
AOF refactoring, now with three states: ON, OFF, WAIT_REWRITE.
[redis.git] / src / replication.c
index 2be03c1b49d08a316d83056b1ebae36cbcca2579..d671acc208a1cedbae80a6682127f11c8544fdee 100644 (file)
@@ -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();