• Marko Mäkelä's avatar
    MDEV-12353 preparation: Replace mtr_x_lock() and friends · 3d4a8015
    Marko Mäkelä authored
    Apart from page latches (buf_block_t::lock), mini-transactions
    are keeping track of at most one dict_index_t::lock and
    fil_space_t::latch at a time, and in a rare case, purge_sys.latch.
    
    Let us introduce interfaces for acquiring an index latch
    or a tablespace latch.
    
    In a later version, we may want to introduce mtr_t members
    for holding a latched dict_index_t* and fil_space_t*,
    and replace the remaining use of mtr_t::m_memo
    with std::set<buf_block_t*> or with a map<buf_block_t*,byte*>
    pointing to log records.
    3d4a8015
mtr0mtr.cc 20.8 KB