# Tests for PERFORMANCE_SCHEMA --source ../include/start_server_common.inc select count(*) from performance_schema.metadata_locks; # Expect metadata locks lost --disable_warnings select variable_value > 0 from performance_schema.global_status where variable_name like 'PERFORMANCE_SCHEMA_METADATA_LOCK_LOST'; --enable_warnings # While at it, check that flush status resets the lost counter FLUSH STATUS; --disable_warnings --disable_ps_protocol select variable_value from performance_schema.global_status where variable_name like 'PERFORMANCE_SCHEMA_METADATA_LOCK_LOST'; --enable_ps_protocol --enable_warnings