mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.7 into 10.8
This commit is contained in:
@@ -626,6 +626,10 @@ bool THD::drop_temporary_table(TABLE *table, bool *is_trans, bool delete_table)
|
||||
DBUG_PRINT("tmptable", ("Dropping table: '%s'.'%s'",
|
||||
table->s->db.str, table->s->table_name.str));
|
||||
|
||||
// close all handlers in case it is statement abort and some can be left
|
||||
if (is_error())
|
||||
table->file->ha_reset();
|
||||
|
||||
locked= lock_temporary_tables();
|
||||
|
||||
share= tmp_table_share(table);
|
||||
|
Reference in New Issue
Block a user