MDEV-24167: Stabilize perfschema.sxlock_func

The extension of the test perfschema.sxlock_func in
commit 1669c8890c
turned out to be unstable.

Let us filter out purge_sys.latch (trx_purge_latch) from the output,
because it might happen that the purge tasks will not be executed
during the test execution.
This commit is contained in:
Marko Mäkelä 2020-12-03 15:15:47 +02:00
parent 1669c8890c
commit 3872e585f3
2 changed files with 6 additions and 3 deletions

View file

@ -32,12 +32,13 @@ commit;
drop table t1;
SELECT DISTINCT event_name FROM performance_schema.events_waits_history_long
WHERE event_name LIKE 'wait/synch/rwlock/innodb/%'
AND event_name!='wait/synch/rwlock/innodb/btr_search_latch'
AND event_name NOT IN
('wait/synch/rwlock/innodb/btr_search_latch',
'wait/synch/rwlock/innodb/trx_purge_latch')
ORDER BY event_name;
event_name
wait/synch/rwlock/innodb/dict_operation_lock
wait/synch/rwlock/innodb/fil_space_latch
wait/synch/rwlock/innodb/trx_purge_latch
select operation from performance_schema.events_waits_history_long
where event_name like "wait/synch/sxlock/%"
and operation = "shared_lock" limit 1;

View file

@ -45,7 +45,9 @@ drop table t1;
SELECT DISTINCT event_name FROM performance_schema.events_waits_history_long
WHERE event_name LIKE 'wait/synch/rwlock/innodb/%'
AND event_name!='wait/synch/rwlock/innodb/btr_search_latch'
AND event_name NOT IN
('wait/synch/rwlock/innodb/btr_search_latch',
'wait/synch/rwlock/innodb/trx_purge_latch')
ORDER BY event_name;
# Make sure some shared_lock operations have been executed