diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-10-26 16:43:52 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-10-26 17:53:55 +0200 |
commit | c27e53f45992d0b0b5eb5ff6242cfe1a78eba8b5 (patch) | |
tree | 638169355bcefadd3c0155c3022038ac4077a876 /storage/innobase/include/log0log.ic | |
parent | a5a2ef079cec378340d8b575aef05974b0b3442e (diff) | |
download | mariadb-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.ic | 2 |
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 |