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-06 09:48:16 +0530
commit19de8b7013536d61afcec2c0a4f2b4ccc5bf6b0d (patch)
treeb742f261138ff8bbdbdcfc13f00bbd893072c275
parentfd8dbe0d2cd23b8ad1e8b393edc85a1440fa293d (diff)
downloadmariadb-git-19de8b7013536d61afcec2c0a4f2b4ccc5bf6b0d.tar.gz
MDEV-28240 InnoDB Temporary Tablespace (ibtmp1) is continously growing
- 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);
}