diff options
author | unknown <bell@sanja.is.com.ua> | 2004-10-28 21:14:00 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-10-28 21:14:00 +0300 |
commit | 33d68675f7a5df7df9d98046d1e40a25744280ee (patch) | |
tree | 4aa4ea92558c5c93323aef49a86ae7b05eca8014 /sql/sql_table.cc | |
parent | ac7f02c2bfc0fc2b758f5b8597595c2d18aaf0cc (diff) | |
download | mariadb-git-33d68675f7a5df7df9d98046d1e40a25744280ee.tar.gz |
close table before next iteration of table proccesing in mysql_admin_table (to allow open next table)
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 8190e31bc0b..65690e56039 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -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 + ; } } |