mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
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.
This commit is contained in:
@@ -9,6 +9,7 @@ AND name!='wait/synch/rwlock/innodb/btr_search_latch' ORDER BY name;
|
||||
name
|
||||
wait/synch/rwlock/innodb/dict_operation_lock
|
||||
wait/synch/rwlock/innodb/fil_space_latch
|
||||
wait/synch/rwlock/innodb/lock_latch
|
||||
wait/synch/rwlock/innodb/trx_i_s_cache_lock
|
||||
wait/synch/rwlock/innodb/trx_purge_latch
|
||||
TRUNCATE TABLE performance_schema.events_waits_history_long;
|
||||
@@ -39,6 +40,7 @@ ORDER BY event_name;
|
||||
event_name
|
||||
wait/synch/rwlock/innodb/dict_operation_lock
|
||||
wait/synch/rwlock/innodb/fil_space_latch
|
||||
wait/synch/rwlock/innodb/lock_latch
|
||||
SELECT event_name FROM performance_schema.events_waits_history_long
|
||||
WHERE event_name = 'wait/synch/sxlock/innodb/index_tree_rw_lock'
|
||||
AND operation IN ('try_shared_lock','shared_lock') LIMIT 1;
|
||||
|
Reference in New Issue
Block a user