Skip to content

Commit 696de6d

Browse files
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().
1 parent f345172 commit 696de6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage/innobase/row/row0ftsort.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,6 @@ row_fts_merge_insert(
16641664
aux_table = dict_table_open_on_name(aux_table_name, FALSE, FALSE,
16651665
DICT_ERR_IGNORE_NONE);
16661666
ut_ad(aux_table != NULL);
1667-
dict_table_close(aux_table, FALSE, FALSE);
16681667
aux_index = dict_table_get_first_index(aux_table);
16691668

16701669
/* Create bulk load instance */
@@ -1789,6 +1788,8 @@ row_fts_merge_insert(
17891788
}
17901789

17911790
exit:
1791+
dict_table_close(aux_table, FALSE, FALSE);
1792+
17921793
fts_sql_commit(trx);
17931794

17941795
trx->op_info = "";

0 commit comments

Comments
 (0)