mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
cleanup: init_tmp_table_share(bool thread_specific)
let the caller tell init_tmp_table_share() whether the table should be thread_specific or not. In particular, internal tmp tables created in the slave thread are perfectly thread specific
This commit is contained in:
@@ -4577,7 +4577,7 @@ int create_table_impl(THD *thd,
|
||||
goto err;
|
||||
}
|
||||
|
||||
init_tmp_table_share(thd, &share, db.str, 0, table_name.str, path.str);
|
||||
init_tmp_table_share(thd, &share, db.str, 0, table_name.str, path.str, true);
|
||||
|
||||
/* prepare everything for discovery */
|
||||
share.field= &no_fields;
|
||||
@@ -9884,7 +9884,7 @@ static int create_table_for_inplace_alter(THD *thd,
|
||||
TABLE *table)
|
||||
{
|
||||
init_tmp_table_share(thd, share, alter_ctx.new_db.str, 0,
|
||||
alter_ctx.new_name.str, alter_ctx.get_tmp_path());
|
||||
alter_ctx.new_name.str, alter_ctx.get_tmp_path(), true);
|
||||
if (share->init_from_binary_frm_image(thd, true, frm->str, frm->length) ||
|
||||
open_table_from_share(thd, share, &alter_ctx.new_name, 0,
|
||||
EXTRA_RECORD, thd->open_options,
|
||||
|
Reference in New Issue
Block a user