summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2022-08-17 18:09:06 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2022-08-17 18:09:06 +0530
commit1aa260c822dde9d2cbd1cbe685656c22f75067c2 (patch)
tree8829ba30051a9236a07f29dd410b33f260dde8ed
parent32167225c728c19ca478bce0529d549a8d056f87 (diff)
downloadmariadb-git-bb-10.3-MDEV-29291.tar.gz
MDEV-29291 Assertion `!table->fts' failed in dict_table_can_be_evicted on SHUTDOWNbb-10.3-MDEV-29291
- InnoDB fts table initially added to LRU table cache while creating the table. Later, table was marked as non-evicted when we add the table to fts optimizer list. Before marking the table as non-evicted, master thread can try to evict the fts table.
-rw-r--r--storage/innobase/dict/dict0crea.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/dict/dict0crea.cc b/storage/innobase/dict/dict0crea.cc
index eba70aca6d1..f0754295aef 100644
--- a/storage/innobase/dict/dict0crea.cc
+++ b/storage/innobase/dict/dict0crea.cc
@@ -1271,7 +1271,7 @@ dict_create_table_step(
if (node->state == TABLE_ADD_TO_CACHE) {
DBUG_EXECUTE_IF("ib_ddl_crash_during_create", DBUG_SUICIDE(););
- node->table->can_be_evicted = true;
+ node->table->can_be_evicted = !node->table->fts;
node->table->add_to_cache();
err = DB_SUCCESS;