1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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:
Sergei Golubchik
2024-07-18 14:43:06 +02:00
parent 44c6328cbb
commit 08a7f18b19
11 changed files with 19 additions and 23 deletions

View File

@ -4640,7 +4640,7 @@ TABLE *select_create::create_table_from_items(THD *thd, List<Item> *items,
DBUG_ENTER("select_create::create_table_from_items");
tmp_table.s= &share;
init_tmp_table_share(thd, &share, "", 0, "", "");
init_tmp_table_share(thd, &share, "", 0, "", "", true);
tmp_table.s->db_create_options=0;
tmp_table.null_row= 0;