Browse Source
MDEV-12353 preparation: Replace mtr_x_lock() and friends
MDEV-12353 preparation: Replace mtr_x_lock() and friends
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.pull/1045/head
22 changed files with 148 additions and 163 deletions
-
24storage/innobase/btr/btr0btr.cc
-
2storage/innobase/btr/btr0bulk.cc
-
30storage/innobase/btr/btr0cur.cc
-
2storage/innobase/btr/btr0defragment.cc
-
2storage/innobase/btr/btr0scrub.cc
-
6storage/innobase/dict/dict0defrag_bg.cc
-
32storage/innobase/dict/dict0stats.cc
-
10storage/innobase/fsp/fsp0fsp.cc
-
2storage/innobase/gis/gis0rtree.cc
-
2storage/innobase/gis/gis0sea.cc
-
8storage/innobase/ibuf/ibuf0ibuf.cc
-
89storage/innobase/include/mtr0mtr.h
-
33storage/innobase/include/mtr0mtr.ic
-
5storage/innobase/mtr/mtr0mtr.cc
-
10storage/innobase/row/row0ins.cc
-
24storage/innobase/row/row0purge.cc
-
6storage/innobase/row/row0uins.cc
-
14storage/innobase/row/row0umod.cc
-
4storage/innobase/row/row0upd.cc
-
2storage/innobase/trx/trx0purge.cc
-
2storage/innobase/trx/trx0rseg.cc
-
2storage/innobase/trx/trx0sys.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue