• Marko Mäkelä's avatar
    MDEV-31373 innodb_undo_log_truncate=ON recovery results in a corrupted undo log · bb9da13b
    Marko Mäkelä authored
    recv_sys_t::apply(): When applying an undo log truncation operation,
    invoke os_file_truncate() on space->recv_size, which must not be
    less than the original truncated file size.
    
    Alternatively, as pointed out by Thirunarayanan Balathandayuthapani,
    we could assign space->size = t.pages, so that
    fil_system_t::extend_to_recv_size() would extend the file back
    to space->recv_size.
    bb9da13b
log0recv.cc 114 KB