Commit 5f69c8a5 authored by Sergei Golubchik's avatar Sergei Golubchik

ha_create_table: remove unused argument

parent 556f5684
......@@ -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);
/* 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);
}
......
......@@ -4132,8 +4132,7 @@ end:
*/
int ha_create_table(THD *thd, const char *path,
const char *db, const char *table_name,
HA_CREATE_INFO *create_info,
bool update_create_info)
HA_CREATE_INFO *create_info)
{
int error= 1;
TABLE table;
......@@ -4148,7 +4147,6 @@ int ha_create_table(THD *thd, const char *path,
TRUE))
goto err;
if (update_create_info)
update_create_info_from_table(create_info, &table);
name= get_canonical_filename(table.file, share.path.str, name_buff);
......
......@@ -3093,8 +3093,7 @@ void ha_checkpoint_state(bool disable);
void ha_commit_checkpoint_request(void *cookie, void (*pre_hook)(void *));
int ha_create_table(THD *thd, const char *path,
const char *db, const char *table_name,
HA_CREATE_INFO *create_info,
bool update_create_info);
HA_CREATE_INFO *create_info);
int ha_delete_table(THD *thd, handlerton *db_type, const char *path,
const char *db, const char *alias, bool generate_warning);
......
......@@ -276,7 +276,7 @@ static bool recreate_temporary_table(THD *thd, TABLE *table)
on table and schema names.
*/
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,
share->table_name.str, TRUE))
......
......@@ -478,7 +478,7 @@ int rea_create_table(THD *thd, const char *path,
if (!create_info->frm_only &&
(file->ha_create_partitioning_metadata(path, NULL, CHF_CREATE_FLAG,
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;
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