22 int error=0,new_error;
24 DBUG_ENTER(
"myrg_close");
43 if (info->children_attached)
45 for (file= info->open_tables; file != info->end_table; file++)
48 if ((new_error= mi_close(file->table)))
56 my_free(info->rec_per_key_part);
57 delete_queue(&info->by_key);
59 myrg_open_list=list_delete(myrg_open_list,&info->open_list);
65 DBUG_RETURN(my_errno=error);