summaryrefslogtreecommitdiff
path: root/storage/innobase/include/log0log.ic
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-10-26 16:43:52 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-10-26 17:53:55 +0200
commitc27e53f45992d0b0b5eb5ff6242cfe1a78eba8b5 (patch)
tree638169355bcefadd3c0155c3022038ac4077a876 /storage/innobase/include/log0log.ic
parenta5a2ef079cec378340d8b575aef05974b0b3442e (diff)
downloadmariadb-git-c27e53f45992d0b0b5eb5ff6242cfe1a78eba8b5.tar.gz
MDEV-23855: Use normal mutex for log_sys.mutex, log_sys.flush_order_mutex
With an unreasonably small innodb_log_file_size, the page cleaner thread would frequently acquire log_sys.flush_order_mutex and spend a significant portion of CPU time spinning on that mutex when determining the checkpoint LSN.
Diffstat (limited to 'storage/innobase/include/log0log.ic')
-rw-r--r--storage/innobase/include/log0log.ic2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/include/log0log.ic b/storage/innobase/include/log0log.ic
index d7232bc5944..d503e3ffec9 100644
--- a/storage/innobase/include/log0log.ic
+++ b/storage/innobase/include/log0log.ic
@@ -255,7 +255,7 @@ log_reserve_and_write_fast(
ulint len,
lsn_t* start_lsn)
{
- ut_ad(log_mutex_own());
+ mysql_mutex_assert_owner(&log_sys.mutex);
ut_ad(len > 0);
const ulint data_len = len