| 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 |
select count(*) from performance_schema.metadata_locks; |
| 9 |
|
| 10 |
# Expect metadata locks lost |
| 11 |
--disable_warnings |
| 12 |
select variable_value > 0 from information_schema.global_status |
| 13 |
where variable_name like 'PERFORMANCE_SCHEMA_METADATA_LOCK_LOST'; |
| 14 |
--enable_warnings |
| 15 |
|
| 16 |
# While at it, check that flush status resets the lost counter |
| 17 |
FLUSH GLOBAL STATUS; |
| 18 |
|
| 19 |
--disable_warnings |
| 20 |
select variable_value from information_schema.global_status |
| 21 |
where variable_name like 'PERFORMANCE_SCHEMA_METADATA_LOCK_LOST'; |
| 22 |
--enable_warnings |
| 23 |
|