mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-7324 - Lock-free hash for table definition cache
This commit is contained in:
@ -5,9 +5,9 @@ WHERE name LIKE 'wait/synch/mutex/%'
|
||||
truncate table performance_schema.events_statements_summary_by_digest;
|
||||
flush status;
|
||||
select NAME from performance_schema.mutex_instances
|
||||
where NAME = 'wait/synch/mutex/sql/TABLE_SHARE::tdc.LOCK_table_share' GROUP BY NAME;
|
||||
where NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex' GROUP BY NAME;
|
||||
NAME
|
||||
wait/synch/mutex/sql/TABLE_SHARE::tdc.LOCK_table_share
|
||||
wait/synch/mutex/mysys/THR_LOCK::mutex
|
||||
select NAME from performance_schema.rwlock_instances
|
||||
where NAME = 'wait/synch/rwlock/sql/LOCK_grant';
|
||||
NAME
|
||||
@ -24,7 +24,7 @@ id b
|
||||
1 initial value
|
||||
SET @before_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.events_waits_history_long
|
||||
WHERE (EVENT_NAME = 'wait/synch/mutex/sql/TABLE_SHARE::tdc.LOCK_table_share'));
|
||||
WHERE (EVENT_NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex'));
|
||||
SELECT * FROM t1;
|
||||
id b
|
||||
1 initial value
|
||||
@ -37,12 +37,12 @@ id b
|
||||
8 initial value
|
||||
SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.events_waits_history_long
|
||||
WHERE (EVENT_NAME = 'wait/synch/mutex/sql/TABLE_SHARE::tdc.LOCK_table_share'));
|
||||
WHERE (EVENT_NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex'));
|
||||
SELECT IF((@after_count - @before_count) > 0, 'Success', 'Failure') test_fm1_timed;
|
||||
test_fm1_timed
|
||||
Success
|
||||
UPDATE performance_schema.setup_instruments SET enabled = 'NO'
|
||||
WHERE NAME = 'wait/synch/mutex/sql/TABLE_SHARE::tdc.LOCK_table_share';
|
||||
WHERE NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex';
|
||||
TRUNCATE TABLE performance_schema.events_waits_history_long;
|
||||
TRUNCATE TABLE performance_schema.events_waits_history;
|
||||
TRUNCATE TABLE performance_schema.events_waits_current;
|
||||
@ -51,7 +51,7 @@ id b
|
||||
1 initial value
|
||||
SET @before_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.events_waits_history_long
|
||||
WHERE (EVENT_NAME = 'wait/synch/mutex/sql/TABLE_SHARE::tdc.LOCK_table_share'));
|
||||
WHERE (EVENT_NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex'));
|
||||
SELECT * FROM t1;
|
||||
id b
|
||||
1 initial value
|
||||
@ -64,7 +64,7 @@ id b
|
||||
8 initial value
|
||||
SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.events_waits_history_long
|
||||
WHERE (EVENT_NAME = 'wait/synch/mutex/sql/TABLE_SHARE::tdc.LOCK_table_share'));
|
||||
WHERE (EVENT_NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex'));
|
||||
SELECT IF((COALESCE(@after_count, 0) - COALESCE(@before_count, 0)) = 0, 'Success', 'Failure') test_fm2_timed;
|
||||
test_fm2_timed
|
||||
Success
|
||||
|
Reference in New Issue
Block a user