MDEV-25702 Auxiliary FTS table evicts during optimize table

InnoDB could evict the fts auxiliary table in
row_fts_merge_insert(). So bulk insert could be
dealing with garbage FTS auxiliary table.Patch
should delay closing the table in row_fts_merge_insert().
This commit is contained in:
Thirunarayanan Balathandayuthapani 2021-09-13 12:37:07 +05:30
commit 696de6d06c

View file

@ -1664,7 +1664,6 @@ row_fts_merge_insert(
aux_table = dict_table_open_on_name(aux_table_name, FALSE, FALSE,
DICT_ERR_IGNORE_NONE);
ut_ad(aux_table != NULL);
dict_table_close(aux_table, FALSE, FALSE);
aux_index = dict_table_get_first_index(aux_table);
/* Create bulk load instance */
@ -1789,6 +1788,8 @@ row_fts_merge_insert(
}
exit:
dict_table_close(aux_table, FALSE, FALSE);
fts_sql_commit(trx);
trx->op_info = "";