MDEV-29291 Assertion `!table->fts' failed in dict_table_can_be_evicted on SHUTDOWN

- 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.
parent 0b805733
...@@ -1271,7 +1271,7 @@ dict_create_table_step( ...@@ -1271,7 +1271,7 @@ dict_create_table_step(
if (node->state == TABLE_ADD_TO_CACHE) { if (node->state == TABLE_ADD_TO_CACHE) {
DBUG_EXECUTE_IF("ib_ddl_crash_during_create", DBUG_SUICIDE();); 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(); node->table->add_to_cache();
err = DB_SUCCESS; err = DB_SUCCESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment