• Thirunarayanan Balathandayuthapani's avatar
    MDEV-32445 InnoDB may corrupt its log before upgrading it on startup · 6e5333fc
    Thirunarayanan Balathandayuthapani authored
    Problem:
    ========
     During upgrade, InnoDB does write the redo log for adjusting
    the tablespace size or tablespace flags even before the log
    has upgraded to configured format. This could lead to data
    inconsistent if any crash happened during upgrade process.
    
    Fix:
    ===
    srv_start(): Write the tablespace flags adjustment, increased
    tablespace size redo log only after redo log upgradation.
    
    log_write_low(), log_reserve_and_write_fast(): Check whether
    the redo log is in physical format.
    6e5333fc
mtr0mtr.cc 33.4 KB