Debian Codegraph @

mysql-test/suite/perfschema/t/start_server_no_rwlock_inst.test

raw
1 # Tests for PERFORMANCE_SCHEMA
2
3 --source include/not_embedded.inc
4 --source include/have_perfschema.inc
5
6 --source ../include/start_server_common.inc
7
8 # Expect classes
9 show global variables like "performance_schema_max_rwlock_classes";
10
11 select count(*) > 0 from performance_schema.setup_instruments
12 where name like "wait/synch/rwlock/%";
13
14 # Expect no class lost
15 show global status like "performance_schema_rwlock_classes_lost";
16
17 # Expect no instances
18 show global variables like "performance_schema_max_rwlock_instances";
19
20 select count(*) from performance_schema.rwlock_instances;
21
22 # Expect instances lost
23 --disable_warnings
24 select variable_value > 0 from information_schema.global_status
25 where variable_name like 'PERFORMANCE_SCHEMA_RWLOCK_INSTANCES_LOST';
26 --enable_warnings
27
28