mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
P_S 5.7.28
This commit is contained in:
23
mysql-test/suite/perfschema/t/start_server_no_mdl.test
Normal file
23
mysql-test/suite/perfschema/t/start_server_no_mdl.test
Normal file
@ -0,0 +1,23 @@
|
||||
# Tests for PERFORMANCE_SCHEMA
|
||||
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_perfschema.inc
|
||||
|
||||
--source ../include/start_server_common.inc
|
||||
|
||||
select count(*) from performance_schema.metadata_locks;
|
||||
|
||||
# Expect metadata locks lost
|
||||
--disable_warnings
|
||||
select variable_value > 0 from information_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
|
||||
select variable_value from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_METADATA_LOCK_LOST';
|
||||
--enable_warnings
|
||||
|
Reference in New Issue
Block a user