• Marko Mäkelä's avatar
    MDEV-25852: Orphan #sql*.ibd files are left behind · 6a4e5bf1
    Marko Mäkelä authored
    The implementation of MDEV-24626 was not entirely correct.
    We could occasionally fail to remove some *.ibd files on recovery.
    
    deferred_spaces: Keep track of FILE_DELETE records.
    
    deferred_spaces.add(): Do not allow duplicate file names.
    
    recv_rename_files(): Preserve some of renamed_spaces entries for
    deferred_spaces.reinit_all().
    
    Thanks to Thirunarayanan Balathandayuthapani for noticing that
    deferred_spaces.add() must filter out duplicate file names,
    as well as some debugging help.
    6a4e5bf1
log0recv.cc 125 KB