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:
@ -23,7 +23,7 @@
|
||||
# Expect no classes
|
||||
show variables like "performance_schema_max_thread_classes";
|
||||
|
||||
select count(*) from performance_schema.SETUP_INSTRUMENTS
|
||||
select count(*) from performance_schema.setup_instruments
|
||||
where name like "thread/%";
|
||||
|
||||
# We lost all the classes
|
||||
@ -31,7 +31,7 @@ select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_THREAD_CLASSES_LOST';
|
||||
|
||||
# Expect no instances
|
||||
select count(*) from performance_schema.THREADS;
|
||||
select count(*) from performance_schema.threads;
|
||||
|
||||
# Expect no instances lost
|
||||
show status like "performance_schema_thread_instances_lost";
|
||||
|
Reference in New Issue
Block a user