AOF refactoring, now with three states: ON, OFF, WAIT_REWRITE.

This commit is contained in:
antirez
2011-12-21 10:31:34 +01:00
parent c6ac7d0302
commit e394114d95
7 changed files with 41 additions and 50 deletions

View File

@ -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);