mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
MDEV-24167 fixup: Improve perfschema.sxlock_func test
This commit is contained in:
parent
cde525f94a
commit
e28d9c15c3
2 changed files with 19 additions and 25 deletions
|
@ -1,6 +1,14 @@
|
|||
UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES';
|
||||
UPDATE performance_schema.setup_instruments SET enabled = 'YES'
|
||||
WHERE name like 'wait/synch/sxlock/%';
|
||||
SELECT DISTINCT name FROM performance_schema.setup_instruments
|
||||
WHERE name LIKE 'wait/synch/rwlock/innodb%'
|
||||
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/trx_i_s_cache_lock
|
||||
wait/synch/rwlock/innodb/trx_purge_latch
|
||||
TRUNCATE TABLE performance_schema.events_waits_history_long;
|
||||
TRUNCATE TABLE performance_schema.events_waits_history;
|
||||
TRUNCATE TABLE performance_schema.events_waits_current;
|
||||
|
@ -8,18 +16,11 @@ select name from performance_schema.setup_instruments
|
|||
where name like "wait/synch/sxlock/%" order by name;
|
||||
name
|
||||
wait/synch/sxlock/innodb/index_tree_rw_lock
|
||||
select name from performance_schema.rwlock_instances
|
||||
where name in
|
||||
(
|
||||
'wait/synch/sxlock/innodb/btr_search_latch',
|
||||
'wait/synch/sxlock/innodb/checkpoint_lock',
|
||||
'wait/synch/sxlock/innodb/dict_operation_lock',
|
||||
'wait/synch/sxlock/innodb/trx_i_s_cache_lock',
|
||||
'wait/synch/sxlock/innodb/trx_purge_latch'
|
||||
)
|
||||
order by name;
|
||||
SELECT DISTINCT name FROM performance_schema.rwlock_instances
|
||||
WHERE name LIKE 'wait/synch/sxlock/innodb/%'
|
||||
ORDER BY name;
|
||||
name
|
||||
drop table if exists t1;
|
||||
wait/synch/sxlock/innodb/index_tree_rw_lock
|
||||
create table t1(a int) engine=innodb;
|
||||
begin;
|
||||
insert into t1 values (1), (2), (3);
|
||||
|
|
|
@ -11,6 +11,10 @@ UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES';
|
|||
UPDATE performance_schema.setup_instruments SET enabled = 'YES'
|
||||
WHERE name like 'wait/synch/sxlock/%';
|
||||
|
||||
SELECT DISTINCT name FROM performance_schema.setup_instruments
|
||||
WHERE name LIKE 'wait/synch/rwlock/innodb%'
|
||||
AND name!='wait/synch/rwlock/innodb/btr_search_latch' ORDER BY name;
|
||||
|
||||
TRUNCATE TABLE performance_schema.events_waits_history_long;
|
||||
TRUNCATE TABLE performance_schema.events_waits_history;
|
||||
TRUNCATE TABLE performance_schema.events_waits_current;
|
||||
|
@ -20,23 +24,12 @@ select name from performance_schema.setup_instruments
|
|||
where name like "wait/synch/sxlock/%" order by name;
|
||||
|
||||
# Check some SX-locks instances are instrumented
|
||||
select name from performance_schema.rwlock_instances
|
||||
where name in
|
||||
(
|
||||
'wait/synch/sxlock/innodb/btr_search_latch',
|
||||
'wait/synch/sxlock/innodb/checkpoint_lock',
|
||||
'wait/synch/sxlock/innodb/dict_operation_lock',
|
||||
'wait/synch/sxlock/innodb/trx_i_s_cache_lock',
|
||||
'wait/synch/sxlock/innodb/trx_purge_latch'
|
||||
)
|
||||
order by name;
|
||||
SELECT DISTINCT name FROM performance_schema.rwlock_instances
|
||||
WHERE name LIKE 'wait/synch/sxlock/innodb/%'
|
||||
ORDER BY name;
|
||||
|
||||
# Some Innodb payload, to produce data
|
||||
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
--enable_warnings
|
||||
|
||||
create table t1(a int) engine=innodb;
|
||||
begin;
|
||||
insert into t1 values (1), (2), (3);
|
||||
|
|
Loading…
Reference in a new issue