mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
close table before next iteration of table proccesing in mysql_admin_table (to allow open next table)
This commit is contained in:
parent
ac7f02c2bf
commit
33d68675f7
1 changed files with 7 additions and 3 deletions
|
@ -1268,9 +1268,13 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables,
|
|||
if (prepare_func)
|
||||
{
|
||||
switch ((*prepare_func)(thd, table, check_opt)) {
|
||||
case 1: continue; // error, message written to net
|
||||
case -1: goto err; // error, message could be written to net
|
||||
default: ; // should be 0 otherwise
|
||||
case 1: // error, message written to net
|
||||
close_thread_tables(thd);
|
||||
continue;
|
||||
case -1: // error, message could be written to net
|
||||
goto err;
|
||||
default: // should be 0 otherwise
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue