summaryrefslogtreecommitdiff
path: root/storage/innobase/include/trx0purge.h
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2022-03-16 14:30:36 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2022-03-16 19:20:27 +0530
commit31ad9277fea8b8a9414f9495eeae7e0424275cd6 (patch)
tree2b1554833dbe431636dcb0887471c2a169de4c62 /storage/innobase/include/trx0purge.h
parentb2c81e06b042025663ea01fa98dac0ff536c7706 (diff)
downloadmariadb-git-31ad9277fea8b8a9414f9495eeae7e0424275cd6.tar.gz
MDEV-28079 Shutdown hangs after altering innodb partition fts table
- InnoDB purge waits at resume_FTS() while shutting down. This happens after altering the FTS innodb partition table. stop_FTS() has been called for each partition, but it calls resume_FTS() only once and it leads to hang during shutdown. This issue was introduced by commit 1bd681c8b3c5213ce1f7976940a7dc38b48a0d39(MDEV-25506).
Diffstat (limited to 'storage/innobase/include/trx0purge.h')
-rw-r--r--storage/innobase/include/trx0purge.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/innobase/include/trx0purge.h b/storage/innobase/include/trx0purge.h
index dc032cdf73a..b3f2fbeedf3 100644
--- a/storage/innobase/include/trx0purge.h
+++ b/storage/innobase/include/trx0purge.h
@@ -286,8 +286,10 @@ public:
/** Stop the purge thread and check n_ref_count of all auxiliary
and common table associated with the fts table.
- @param table parent FTS table */
- void stop_FTS(const dict_table_t &table);
+ @param table parent FTS table
+ @param already_stopped True indicates purge threads were
+ already stopped */
+ void stop_FTS(const dict_table_t &table, bool already_stopped=false);
};
/** The global data structure coordinating a purge */