• Thirunarayanan Balathandayuthapani's avatar
    MDEV-26326 mariabackup skip valid ibd file · 8d742fe4
    Thirunarayanan Balathandayuthapani authored
    - Store the deferred tablespace name while loading the tablespace
    for backup process.
    
    - Mariabackup stores the list of space ids which has page0 INIT_PAGE
    records. backup_first_page_op() and first_page_init() was introduced
    to track the page0 INIT_PAGE records.
    
    - backup_file_op() and log_file_op() was changed to handle
    FILE_MODIFY redo log records. It is used to identify the
    deferred tablespace space id.
    
    - Whenever file operation redo log was processed by backup,
    backup_file_op() should check whether the space name exist
    in deferred tablespace. If it is then it needs to store the
    space id, name when FILE_MODIFY, FILE_RENAME redo log processed
    and it should delete the tablespace name from defer list in other
    cases.
    
    - backup_fix_ddl() should check whether deferred tablespace has
    any page0 init records. If it is then consider the tablespace
    as newly created tablespace. If not then backup should try
    to reload the tablespace with SRV_BACKUP_NO_DEFER mode to
    avoid the deferring of tablespace.
    8d742fe4
log0recv.cc 129 KB