mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#30712 (open_performance_schema_table() cause an open table leak on
failures) Fixed open_performance_schema_table() and close_performance_schema_table() implementation and callers, to always execute balanced calls to: thd->reset_n_backup_open_tables_state(backup); thd->restore_backup_open_tables_state(backup);
This commit is contained in:
10
sql/log.cc
10
sql/log.cc
@ -656,8 +656,14 @@ int Log_to_csv_event_handler::
|
||||
|
||||
table= open_performance_schema_table(thd, & table_list,
|
||||
& open_tables_backup);
|
||||
result= (table ? 0 : 1);
|
||||
close_performance_schema_table(thd, & open_tables_backup);
|
||||
if (table)
|
||||
{
|
||||
result= 0;
|
||||
close_performance_schema_table(thd, & open_tables_backup);
|
||||
}
|
||||
else
|
||||
result= 1;
|
||||
|
||||
DBUG_RETURN(result);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user