1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

cleanup: remove useless check

create_table_impl() doesn't need to search for a temporary table
when the table_name is like #sql-xxx
This commit is contained in:
Sergei Golubchik
2023-08-09 20:30:52 +02:00
parent 80439e6918
commit 4e87081b56

View File

@ -4457,8 +4457,8 @@ int create_table_impl(THD *thd,
If a table exists, it must have been pre-opened. Try looking for one If a table exists, it must have been pre-opened. Try looking for one
in-use in THD::all_temp_tables list of TABLE_SHAREs. in-use in THD::all_temp_tables list of TABLE_SHAREs.
*/ */
TABLE *tmp_table= thd->find_temporary_table(db.str, table_name.str, TABLE *tmp_table= internal_tmp_table ? NULL :
THD::TMP_TABLE_ANY); thd->find_temporary_table(db.str, table_name.str, THD::TMP_TABLE_ANY);
if (tmp_table) if (tmp_table)
{ {