• Wang Yuan's avatar
    Remove temporary aof and rdb files in a background thread (#7905) · 14532772
    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.
    
    (cherry picked from commit aaacb8c9)
    14532772
replication.c 135 KB