diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-02-27 15:43:57 -0500 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-02-27 23:27:43 -0500 |
commit | 9fd3e810e8af49105b65578292d271cca23f2c34 (patch) | |
tree | 5092af54f5dc1b44730b5ca8212228c5f91e1fad /sql/temporary_tables.cc | |
parent | 304f0084ef86b712358393b3b673e88612320957 (diff) | |
download | mariadb-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.cc | 2 |
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); } } |