]> git.saurik.com Git - redis.git/blobdiff - src/multi.c
AOF refactoring, now with three states: ON, OFF, WAIT_REWRITE.
[redis.git] / src / multi.c
index 5c88340055ce6104171ac3e33febb0105c6ad7b8..1504bb09b7ecca52b6c6df5fb45eac2891b15cf5 100644 (file)
@@ -67,7 +67,7 @@ void discardCommand(redisClient *c) {
 void execCommandReplicateMulti(redisClient *c) {
     robj *multistring = createStringObject("MULTI",5);
 
-    if (server.appendonly)
+    if (server.aof_state != REDIS_AOF_OFF)
         feedAppendOnlyFile(server.multiCommand,c->db->id,&multistring,1);
     if (listLength(server.slaves))
         replicationFeedSlaves(server.slaves,c->db->id,&multistring,1);