From d71b51323b8734955a1cca7c7f328dfecad836dd Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Mon, 30 Jun 2003 17:00:11 +0200 Subject: [PATCH] REPAIR/OPTIMIZE/CHECK/RESTORE/etc commands close relevant open HANDLERs --- sql/sql_table.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/sql_table.cc b/sql/sql_table.cc index f3620b860a7..5a53ba30631 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -1198,6 +1198,7 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables, if (send_fields(thd, field_list, 1)) DBUG_RETURN(-1); + mysql_ha_closeall(thd, tables); for (table = tables; table; table = table->next) { char table_name[NAME_LEN*2+2];