Debian Codegraph @

mysql-test/suite/perfschema/t/start_server_no_file_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_file_classes";
7
8 select count(*) > 0 from performance_schema.setup_instruments
9 where name like "wait/io/file/%";
10
11 # Expect no class lost
12 show global status like "performance_schema_file_classes_lost";
13
14 # Expect no instances
15 show global variables like "performance_schema_max_file_instances";
16
17 select count(*) from performance_schema.file_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_FILE_INSTANCES_LOST';
23 --enable_warnings
24
25