• Marko Mäkelä's avatar
    MDEV-32269 InnoDB after ALTER TABLE…IMPORT TABLESPACE may not be crash safe · 89a5a8d2
    Marko Mäkelä authored
    mtr_t::commit(): If IMPORT TABLESPACE is first-time-dirtying blocks,
    acquire both log_sys.mutex and log_sys.flush_order_mutex to assign
    a valid m_commit_lsn so that the block will be inserted into the
    correct position of buf_pool.flush_list.
    
    This fixes occasional debug assertion failures when running the
    regression test suite.
    
    Reviewed by: Vladislav Lesin
    89a5a8d2
mtr0mtr.cc 33.3 KB