mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#57609 performance_schema does not work with lower_case_table_names
Before this fix, the performance schema tables were defined in UPPERCASE. This was incompatible with the lowercase_table_names option, and caused issues with the install / upgrade process, when changing the lower case table names setting *after* the install or upgrade. With this fix, all performance schema tables are exposed with lowercase names. As a result, the name of the performance schema table is always lowercase, no matter how / if / when the lowercase_table_names setting if changed.
This commit is contained in:
@ -2,31 +2,31 @@ use performance_schema;
|
||||
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;
|
||||
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';
|
||||
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;
|
||||
lock tables performance_schema.setup_instruments read;
|
||||
select * from performance_schema.setup_instruments;
|
||||
unlock tables;
|
||||
lock tables performance_schema.SETUP_INSTRUMENTS write;
|
||||
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
|
||||
from performance_schema.events_waits_current
|
||||
where event_name like "wait/synch/cond/sql/COND_global_read_lock";
|
||||
event_name short_source timer_end timer_wait operation
|
||||
wait/synch/cond/sql/COND_global_read_lock lock.cc: NULL NULL wait
|
||||
unlock tables;
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='NO';
|
||||
update performance_schema.SETUP_INSTRUMENTS set enabled='YES';
|
||||
update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
unlock tables;
|
||||
connection default;
|
||||
drop user pfsuser@localhost;
|
||||
|
Reference in New Issue
Block a user