Commit d067e436 authored by Sergei Golubchik's avatar Sergei Golubchik

ha_create_table: remove unused argument

parent 5e0fd7e4
...@@ -180,7 +180,7 @@ bool dd_recreate_table(THD *thd, const char *db, const char *table_name) ...@@ -180,7 +180,7 @@ bool dd_recreate_table(THD *thd, const char *db, const char *table_name)
build_table_filename(path, sizeof(path) - 1, db, table_name, "", 0); build_table_filename(path, sizeof(path) - 1, db, table_name, "", 0);
/* Attempt to reconstruct the table. */ /* Attempt to reconstruct the table. */
error= ha_create_table(thd, path, db, table_name, &create_info, TRUE); error= ha_create_table(thd, path, db, table_name, &create_info);
DBUG_RETURN(error); DBUG_RETURN(error);
} }
......
...@@ -4132,8 +4132,7 @@ void handler::update_global_index_stats() ...@@ -4132,8 +4132,7 @@ void handler::update_global_index_stats()
*/ */
int ha_create_table(THD *thd, const char *path, int ha_create_table(THD *thd, const char *path,
const char *db, const char *table_name, const char *db, const char *table_name,
HA_CREATE_INFO *create_info, HA_CREATE_INFO *create_info)
bool update_create_info)
{ {
int error= 1; int error= 1;
TABLE table; TABLE table;
...@@ -4148,7 +4147,6 @@ int ha_create_table(THD *thd, const char *path, ...@@ -4148,7 +4147,6 @@ int ha_create_table(THD *thd, const char *path,
TRUE)) TRUE))
goto err; goto err;
if (update_create_info)
update_create_info_from_table(create_info, &table); update_create_info_from_table(create_info, &table);
name= get_canonical_filename(table.file, share.path.str, name_buff); name= get_canonical_filename(table.file, share.path.str, name_buff);
......
...@@ -3093,8 +3093,7 @@ void ha_checkpoint_state(bool disable); ...@@ -3093,8 +3093,7 @@ void ha_checkpoint_state(bool disable);
void ha_commit_checkpoint_request(void *cookie, void (*pre_hook)(void *)); void ha_commit_checkpoint_request(void *cookie, void (*pre_hook)(void *));
int ha_create_table(THD *thd, const char *path, int ha_create_table(THD *thd, const char *path,
const char *db, const char *table_name, const char *db, const char *table_name,
HA_CREATE_INFO *create_info, HA_CREATE_INFO *create_info);
bool update_create_info);
int ha_delete_table(THD *thd, handlerton *db_type, const char *path, int ha_delete_table(THD *thd, handlerton *db_type, const char *path,
const char *db, const char *alias, bool generate_warning); const char *db, const char *alias, bool generate_warning);
......
...@@ -276,7 +276,7 @@ static bool recreate_temporary_table(THD *thd, TABLE *table) ...@@ -276,7 +276,7 @@ static bool recreate_temporary_table(THD *thd, TABLE *table)
on table and schema names. on table and schema names.
*/ */
ha_create_table(thd, share->normalized_path.str, share->db.str, ha_create_table(thd, share->normalized_path.str, share->db.str,
share->table_name.str, &create_info, 1); share->table_name.str, &create_info);
if (open_table_uncached(thd, share->path.str, share->db.str, if (open_table_uncached(thd, share->path.str, share->db.str,
share->table_name.str, TRUE)) share->table_name.str, TRUE))
......
...@@ -478,7 +478,7 @@ int rea_create_table(THD *thd, const char *path, ...@@ -478,7 +478,7 @@ int rea_create_table(THD *thd, const char *path,
if (!create_info->frm_only && if (!create_info->frm_only &&
(file->ha_create_partitioning_metadata(path, NULL, CHF_CREATE_FLAG, (file->ha_create_partitioning_metadata(path, NULL, CHF_CREATE_FLAG,
create_info) || create_info) ||
ha_create_table(thd, path, db, table_name, create_info, 0))) ha_create_table(thd, path, db, table_name, create_info)))
goto err_handler; goto err_handler;
DBUG_RETURN(0); DBUG_RETURN(0);
......
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