| 1 |
|
| 2 |
--source include/not_embedded.inc |
| 3 |
--source include/have_perfschema.inc |
| 4 |
--source include/no_protocol.inc |
| 5 |
--source include/not_windows.inc |
| 6 |
|
| 7 |
# Bug#79784 update setup_instruments do not affect the global |
| 8 |
# mutex/rwlock/cond |
| 9 |
|
| 10 |
# Verify instruments are off by default, per *.opt file |
| 11 |
select count(*) from performance_schema.setup_instruments |
| 12 |
where enabled='YES' |
| 13 |
and name like "wait/%"; |
| 14 |
|
| 15 |
# Verify that we have instrumented objects |
| 16 |
select count(*) > 0 from performance_schema.mutex_instances; |
| 17 |
select count(*) > 0 from performance_schema.rwlock_instances; |
| 18 |
select count(*) > 0 from performance_schema.cond_instances; |
| 19 |
select count(*) > 0 from performance_schema.socket_instances; |
| 20 |
|
| 21 |
# Check for some known global objects. |
| 22 |
select NAME from performance_schema.mutex_instances |
| 23 |
where NAME = "wait/synch/mutex/sql/LOCK_gdl"; |
| 24 |
select NAME from performance_schema.rwlock_instances |
| 25 |
where NAME = "wait/synch/rwlock/sql/LOCK_system_variables_hash"; |
| 26 |
select NAME from performance_schema.cond_instances |
| 27 |
where NAME = "wait/synch/cond/sql/COND_server_started"; |
| 28 |
select EVENT_NAME from performance_schema.socket_instances |
| 29 |
where EVENT_NAME = "wait/io/socket/sql/client_connection"; |