summaryrefslogtreecommitdiff
path: root/storage/innobase/fts/fts0opt.cc
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2019-09-17 20:47:58 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2019-09-17 20:47:58 +0530
commit708f1e341915b9fe2968581c60fb6a224b185af9 (patch)
treea186010c6c72fea4f9ad6641fb721a8159e2d6d1 /storage/innobase/fts/fts0opt.cc
parentae2b88ff3f94253921fed5c48422adeebe7e623d (diff)
downloadmariadb-git-708f1e341915b9fe2968581c60fb6a224b185af9.tar.gz
MDEV-19647 Server hangs after dropping full text indexes and restart
- There is no need to add the table in fts_optimize_wq if there is no fts indexes associated with it.
Diffstat (limited to 'storage/innobase/fts/fts0opt.cc')
-rw-r--r--storage/innobase/fts/fts0opt.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/innobase/fts/fts0opt.cc b/storage/innobase/fts/fts0opt.cc
index 2f8739d3d2c..553c6ff392b 100644
--- a/storage/innobase/fts/fts0opt.cc
+++ b/storage/innobase/fts/fts0opt.cc
@@ -2614,6 +2614,12 @@ UNIV_INTERN void fts_optimize_add_table(dict_table_t* table)
return;
}
+ /* If there is no fts index present then don't add to
+ optimize queue. */
+ if (!ib_vector_size(table->fts->indexes)) {
+ return;
+ }
+
/* Make sure table with FTS index cannot be evicted */
if (table->can_be_evicted) {
dict_table_move_from_lru_to_non_lru(table);