Skip to content

Commit

Permalink
MDEV-25702 Auxiliary FTS table evicts during optimize table
Browse files Browse the repository at this point in the history
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().
  • Loading branch information
Thirunarayanan committed Sep 13, 2021
1 parent f345172 commit 696de6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/innobase/row/row0ftsort.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -1789,6 +1788,8 @@ row_fts_merge_insert(
}

exit:
dict_table_close(aux_table, FALSE, FALSE);

fts_sql_commit(trx);

trx->op_info = "";
Expand Down

0 comments on commit 696de6d

Please sign in to comment.