mariadb/storage/innobase/row
Marko Mäkelä 4369a382a1 MDEV-37152: Remove many calls to _current_thd()
mtr_t::trx: New public const data member. If it is nullptr,
per-connection statistics will not be updated. The transaction is
not necessarily in active state. We may merely use it as an "anchor"
for buffering updates of buf_pool.stat.n_page_gets in
trx_t::pages_accessed.

As part of this, we try to create mtr_t less often, reusing one object
in multiple places. Some read operations will
invoke mtr_t::rollback_to_savepoint() to release their own page latches
within a larger mini-transactions.

Reviewed by: Vladislav Lesin
Tested by: Saahil Alam
2025-09-29 14:35:02 +03:00
..
row0ext.cc Merge 10.3 into 10.4 2020-07-02 07:39:33 +03:00
row0ftsort.cc Merge branch '10.6' into 10.11 2023-12-18 11:19:04 +01:00
row0import.cc MDEV-37152: Remove many calls to _current_thd() 2025-09-29 14:35:02 +03:00
row0ins.cc MDEV-37152: Remove many calls to _current_thd() 2025-09-29 14:35:02 +03:00
row0log.cc MDEV-37152: Remove many calls to _current_thd() 2025-09-29 14:35:02 +03:00
row0merge.cc MDEV-37152: Remove many calls to _current_thd() 2025-09-29 14:35:02 +03:00
row0mysql.cc MDEV-37152: Remove many calls to _current_thd() 2025-09-29 14:35:02 +03:00
row0purge.cc MDEV-37152: Remove many calls to _current_thd() 2025-09-29 14:35:02 +03:00
row0quiesce.cc Merge branch '10.11' into 11.4 2025-06-17 09:50:22 +02:00
row0row.cc Merge branch '10.11' into 11.2 2024-10-29 16:42:46 +01:00
row0sel.cc MDEV-37152: Remove many calls to _current_thd() 2025-09-29 14:35:02 +03:00
row0uins.cc MDEV-37152: Remove many calls to _current_thd() 2025-09-29 14:35:02 +03:00
row0umod.cc MDEV-37152: Remove many calls to _current_thd() 2025-09-29 14:35:02 +03:00
row0undo.cc MDEV-37152: Remove many calls to _current_thd() 2025-09-29 14:35:02 +03:00
row0upd.cc MDEV-37152: Remove many calls to _current_thd() 2025-09-29 14:35:02 +03:00
row0vers.cc MDEV-37152: Remove many calls to _current_thd() 2025-09-29 14:35:02 +03:00