• Wang Yuan's avatar
    Remove temporary aof and rdb files in a background thread (#7905) · aaacb8c9
    Wang Yuan authored
    If we fail or stop to rewrite aof, we need to remove temporary aof.
    We also remove temporary rdb when replicas abort to receive rdb.
    But currently we delete them in main thread, to avoid blocking,
    we should use bg_unlink to remove them in a background thread.
    
    Btw, we have already used this way to removed child process temporary rdb.
    aaacb8c9
replication.c 136 KB