summaryrefslogtreecommitdiff
path: root/storage/innobase/ibuf
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-02-11 14:52:10 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2021-02-11 14:52:10 +0200
commitb01d8e1a336cd216fd87867cc7f6160c932ae8c0 (patch)
tree892eec6ff986b4ffd15a862ac731a741771d4f06 /storage/innobase/ibuf
parent903464929ca2cd5a3fd994dad90d7bf78d653def (diff)
downloadmariadb-git-b01d8e1a336cd216fd87867cc7f6160c932ae8c0.tar.gz
MDEV-20612: Replace lock_sys.mutex with lock_sys.latch
For now, we will acquire the lock_sys.latch only in exclusive mode, that is, use it as a mutex. This is preparation for the next commit where we will introduce a less intrusive alternative, combining a shared lock_sys.latch with dict_table_t::lock_mutex or a mutex embedded in lock_sys.rec_hash, lock_sys.prdt_hash, or lock_sys.prdt_page_hash.
Diffstat (limited to 'storage/innobase/ibuf')
-rw-r--r--storage/innobase/ibuf/ibuf0ibuf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/ibuf/ibuf0ibuf.cc b/storage/innobase/ibuf/ibuf0ibuf.cc
index 7f288d0b30a..a240a180b34 100644
--- a/storage/innobase/ibuf/ibuf0ibuf.cc
+++ b/storage/innobase/ibuf/ibuf0ibuf.cc
@@ -3280,7 +3280,7 @@ commit_exit:
ibuf_mtr_commit(&bitmap_mtr);
goto fail_exit;
} else {
- LockMutexGuard g;
+ LockMutexGuard g{SRW_LOCK_CALL};
if (lock_sys.get_first(page_id)) {
goto commit_exit;
}