summaryrefslogtreecommitdiff
path: root/sql/temporary_tables.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-02-27 15:43:57 -0500
committerSergei Golubchik <serg@mariadb.org>2019-02-27 23:27:43 -0500
commit9fd3e810e8af49105b65578292d271cca23f2c34 (patch)
tree5092af54f5dc1b44730b5ca8212228c5f91e1fad /sql/temporary_tables.cc
parent304f0084ef86b712358393b3b673e88612320957 (diff)
downloadmariadb-git-9fd3e810e8af49105b65578292d271cca23f2c34.tar.gz
MDEV-18747 InnoDB: Failing assertion: table->get_ref_count() == 0 upon dropping temporary table with unique blob
delete update handler clone also for temporary tables
Diffstat (limited to 'sql/temporary_tables.cc')
-rw-r--r--sql/temporary_tables.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/temporary_tables.cc b/sql/temporary_tables.cc
index 917a85e6c3b..77e19830119 100644
--- a/sql/temporary_tables.cc
+++ b/sql/temporary_tables.cc
@@ -731,6 +731,8 @@ void THD::mark_tmp_tables_as_free_for_reuse()
{
if ((table->query_id == query_id) && !table->open_by_handler)
{
+ if (table->update_handler)
+ table->delete_update_handler();
mark_tmp_table_as_free_for_reuse(table);
}
}