summaryrefslogtreecommitdiff
path: root/storage/innobase/trx/trx0rseg.cc
diff options
context:
space:
mode:
authorKrunal Bauskar <mysqlonarm@gmail.com>2022-02-24 16:46:40 +0800
committerKrunal Bauskar <mysqlonarm@gmail.com>2022-02-24 19:48:51 +0800
commit83212632e4b5f824edc8327be750feed32a96054 (patch)
tree1fa099a1126c2558fa4227344fc43affea3b73ee /storage/innobase/trx/trx0rseg.cc
parent164a6aa41c6b0e8503c972167e300faad6ab0fce (diff)
downloadmariadb-git-83212632e4b5f824edc8327be750feed32a96054.tar.gz
MDEV-27935: Enable performance_schema profiling for trx_rseg_t latch
- In 10.6, trx_rseg_t mutex was ported to use latch. As part of this porting profiling of the patch was removed. This patch reenables it given that the said latch continues to occupy the top-slots in the contention list.
Diffstat (limited to 'storage/innobase/trx/trx0rseg.cc')
-rw-r--r--storage/innobase/trx/trx0rseg.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/trx/trx0rseg.cc b/storage/innobase/trx/trx0rseg.cc
index 23999a4208b..449282634c3 100644
--- a/storage/innobase/trx/trx0rseg.cc
+++ b/storage/innobase/trx/trx0rseg.cc
@@ -380,7 +380,7 @@ void trx_rseg_t::destroy()
void trx_rseg_t::init(fil_space_t *space, uint32_t page)
{
- latch.init();
+ latch.SRW_LOCK_INIT(trx_rseg_latch_key);
ut_ad(!this->space);
this->space= space;
page_no= page;