1
0
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:
malff/marcsql@weblab.(none)
2007-08-29 18:56:00 -06:00
parent 496eb569d9
commit 88091e8250
2 changed files with 29 additions and 19 deletions

View File

@ -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);
}