Commit 1aebcd1e authored by unknown's avatar unknown

close table before next iteration of table proccesing in mysql_admin_table (to...

close table before next iteration of table proccesing in mysql_admin_table (to allow open next table)

parent bb1cb112
...@@ -1268,9 +1268,13 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables, ...@@ -1268,9 +1268,13 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables,
if (prepare_func) if (prepare_func)
{ {
switch ((*prepare_func)(thd, table, check_opt)) { switch ((*prepare_func)(thd, table, check_opt)) {
case 1: continue; // error, message written to net case 1: // error, message written to net
case -1: goto err; // error, message could be written to net close_thread_tables(thd);
default: ; // should be 0 otherwise continue;
case -1: // error, message could be written to net
goto err;
default: // should be 0 otherwise
;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment