mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
remove ha_create_table_from_engine()
replace enum read_frm_op with a bitmap flags. remove always-unused 'error' argument of get_table_share
This commit is contained in:
@ -81,7 +81,6 @@ static int prepare_for_repair(THD *thd, TABLE_LIST *table_list,
|
||||
HA_CHECK_OPT *check_opt)
|
||||
{
|
||||
int error= 0;
|
||||
enum open_frm_error not_used;
|
||||
TABLE tmp_table, *table;
|
||||
TABLE_LIST *pos_in_locked_tables= 0;
|
||||
TABLE_SHARE *share;
|
||||
@ -124,7 +123,7 @@ static int prepare_for_repair(THD *thd, TABLE_LIST *table_list,
|
||||
has_mdl_lock= TRUE;
|
||||
|
||||
share= get_table_share(thd, table_list->db, table_list->table_name,
|
||||
FRM_READ_TABLE_ONLY, ¬_used);
|
||||
GTS_TABLE);
|
||||
if (share == NULL)
|
||||
DBUG_RETURN(0); // Can't open frm file
|
||||
|
||||
|
Reference in New Issue
Block a user