1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Replace find_temporary_table() with is_temporary_table()

DROP TABLE opens all temporary tables at start, but then
uses find_temporary_table() to check if a table is temporary
instead of is_temporary_table() which is much faster.

This patch fixes this issue.
This commit is contained in:
Monty
2020-09-29 19:02:05 +03:00
committed by Sergei Golubchik
parent 949d10bea2
commit f671a9dee7
2 changed files with 2 additions and 3 deletions

View File

@ -4930,7 +4930,7 @@ mysql_execute_command(THD *thd)
{
if (!lex->tmp_table() &&
(!thd->is_current_stmt_binlog_format_row() ||
!thd->find_temporary_table(table)))
!is_temporary_table(table)))
{
WSREP_TO_ISOLATION_BEGIN(NULL, NULL, all_tables);
break;