summaryrefslogtreecommitdiff
path: root/mysql-test/suite/perfschema/t/start_server_no_mdl.test
blob: c3d1ca7d791659d52dce8263dd77f26fdf632ea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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