mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
f11b9a88eb
Text conflict in mysql-test/suite/perfschema/r/dml_setup_instruments.result Text conflict in mysql-test/suite/perfschema/r/global_read_lock.result Text conflict in mysql-test/suite/perfschema/r/server_init.result Text conflict in mysql-test/suite/perfschema/t/global_read_lock.test Text conflict in mysql-test/suite/perfschema/t/server_init.test
34 lines
1.4 KiB
Text
34 lines
1.4 KiB
Text
use performance_schema;
|
|
update performance_schema.setup_instruments set enabled='YES';
|
|
grant SELECT, UPDATE, LOCK TABLES on performance_schema.* to pfsuser@localhost;
|
|
flush privileges;
|
|
connect (con1, localhost, pfsuser, , test);
|
|
lock tables performance_schema.setup_instruments read;
|
|
select * from performance_schema.setup_instruments;
|
|
unlock tables;
|
|
lock tables performance_schema.setup_instruments write;
|
|
update performance_schema.setup_instruments set enabled='NO';
|
|
update performance_schema.setup_instruments set enabled='YES';
|
|
unlock tables;
|
|
connection default;
|
|
flush tables with read lock;
|
|
connection con1;
|
|
lock tables performance_schema.setup_instruments read;
|
|
select * from performance_schema.setup_instruments;
|
|
unlock tables;
|
|
lock tables performance_schema.setup_instruments write;
|
|
connection default;
|
|
select event_name,
|
|
left(source, locate(":", source)) as short_source,
|
|
timer_end, timer_wait, operation
|
|
from performance_schema.events_waits_current
|
|
where event_name like "wait/synch/cond/sql/MDL_context::COND_wait_status";
|
|
event_name short_source timer_end timer_wait operation
|
|
wait/synch/cond/sql/MDL_context::COND_wait_status mdl.cc: NULL NULL timed_wait
|
|
unlock tables;
|
|
update performance_schema.setup_instruments set enabled='NO';
|
|
update performance_schema.setup_instruments set enabled='YES';
|
|
unlock tables;
|
|
connection default;
|
|
drop user pfsuser@localhost;
|
|
flush privileges;
|