Debian Codegraph @

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

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