• Marko Mäkelä's avatar
    MDEV-23806 Undo page corruption on recovery · e57c1167
    Marko Mäkelä authored
    When commit 0fd3def2 removed
    the MLOG_UNDO_ERASE_END record in MariaDB 10.3.3 in an attempt
    to reduce our redo log volume, it introduced technical debt for
    commit 56f6dab1 (MDEV-21174) and
    commit 7ae21b18 (MDEV-12353),
    which optimized mtr_t::write() (née mlog_write_ulint()) so
    that the initial bytes that are unchanged are not logged.
    
    trx_undo_report_row_operation(): Write a log record for the
    memset() operation if the page is not going to be freed.
    e57c1167
trx0rec.cc 71.2 KB