mirror of
https://github.com/fluencelabs/redis
synced 2025-06-26 15:31:33 +00:00
AOF refactoring, now with three states: ON, OFF, WAIT_REWRITE.
This commit is contained in:
2
src/db.c
2
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);
|
||||
|
Reference in New Issue
Block a user