]> git.saurik.com Git - redis.git/blobdiff - src/db.c
AOF refactoring, now with three states: ON, OFF, WAIT_REWRITE.
[redis.git] / src / db.c
index 3135795d8e8ae9f496278c4057f9d02350af00f1..616b1fa1f3ad4d40e357769be8cc2191c0c15c13 100644 (file)
--- a/src/db.c
+++ b/src/db.c
@@ -487,7 +487,7 @@ void propagateExpire(redisDb *db, robj *key) {
     argv[1] = key;
     incrRefCount(key);
 
-    if (server.appendonly)
+    if (server.aof_state != REDIS_AOF_OFF)
         feedAppendOnlyFile(server.delCommand,db->id,argv,2);
     if (listLength(server.slaves))
         replicationFeedSlaves(server.slaves,db->id,argv,2);