diff --git a/src/db.c b/src/db.c index 19b2c48e4..529b57c7b 100644 --- a/src/db.c +++ b/src/db.c @@ -1228,9 +1228,7 @@ void propagateExpire(redisDb *db, robj *key, int lazy) { incrRefCount(argv[0]); incrRefCount(argv[1]); - if (server.aof_state != AOF_OFF) - feedAppendOnlyFile(server.delCommand,db->id,argv,2); - replicationFeedSlaves(server.slaves,db->id,argv,2); + propagate(server.delCommand,db->id,argv,2,PROPAGATE_AOF|PROPAGATE_REPL); decrRefCount(argv[0]); decrRefCount(argv[1]);