summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2022-09-02 22:53:08 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2022-09-05 23:20:19 +0530
commita027448e4d98e3d3bdb709712b4547554fd63d9d (patch)
tree78034b7e879a4a5abc92059b695a2de6dd672f45
parent9fefd440b516f2941710891d72489dac98a97d19 (diff)
downloadmariadb-git-bb-10.6-MDEV-28240.tar.gz
MDEV-28240 InnoDB Temporary Tablespace (ibtmp1) is continously growingbb-10.6-MDEV-28240
- This is caused by commit 1bd681c8b3c5213ce1f7976940a7dc38b48a0d39(MDEV-25506) InnoDB removes the index from the table object before freeing the leaf and non-leaf segments.
-rw-r--r--storage/innobase/handler/ha_innodb.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index c9d9f663050..2dd0859d181 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -13497,11 +13497,12 @@ int ha_innobase::delete_table(const char *name)
if (table->is_temporary())
{
- dict_sys.remove(table, false, true);
dict_sys.unlock();
parent_trx->mod_tables.erase(table); /* CREATE...SELECT error handling */
btr_drop_temporary_table(*table);
- dict_mem_table_free(table);
+ dict_sys.lock(SRW_LOCK_CALL);
+ dict_sys.remove(table);
+ dict_sys.unlock();
DBUG_RETURN(0);
}