summaryrefslogtreecommitdiff
path: root/storage/innobase/fts
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-08-02 16:39:08 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-08-02 16:39:08 +0300
commit89cc6338531d21469858325296d6ffa0c126ffd3 (patch)
tree3729cf9484155bdb7546eef3efae9ce4a43facad /storage/innobase/fts
parent7841a7eb09208f52fcbab7e80e38c7ca29b1339e (diff)
downloadmariadb-git-89cc6338531d21469858325296d6ffa0c126ffd3.tar.gz
MDEV-13564 fixup: Remove unused function fts_check_corrupt()
The call to the function fts_check_corrupt() was removed in commit 09af00cbde1d62dfda574dee10e5c0fd240c3f7f already.
Diffstat (limited to 'storage/innobase/fts')
-rw-r--r--storage/innobase/fts/fts0fts.cc55
1 files changed, 0 insertions, 55 deletions
diff --git a/storage/innobase/fts/fts0fts.cc b/storage/innobase/fts/fts0fts.cc
index 6d1ac1b9300..ede9546713c 100644
--- a/storage/innobase/fts/fts0fts.cc
+++ b/storage/innobase/fts/fts0fts.cc
@@ -6337,58 +6337,3 @@ func_exit:
return(TRUE);
}
-
-/** Check if the all the auxillary tables associated with FTS index are in
-consistent state. For now consistency is check only by ensuring
-index->page_no != FIL_NULL
-@param[out] base_table table has host fts index
-@param[in,out] trx trx handler */
-void
-fts_check_corrupt(
- dict_table_t* base_table,
- trx_t* trx)
-{
- bool sane = true;
- fts_table_t fts_table;
-
- /* Iterate over the common table and check for their sanity. */
- FTS_INIT_FTS_TABLE(&fts_table, NULL, FTS_COMMON_TABLE, base_table);
-
- for (ulint i = 0; fts_common_tables[i] != NULL && sane; ++i) {
-
- char table_name[MAX_FULL_NAME_LEN];
-
- fts_table.suffix = fts_common_tables[i];
- fts_get_table_name(&fts_table, table_name);
-
- dict_table_t* aux_table = dict_table_open_on_name(
- table_name, true, FALSE, DICT_ERR_IGNORE_NONE);
-
- if (aux_table == NULL) {
- dict_set_corrupted(
- dict_table_get_first_index(base_table),
- trx, "FTS_SANITY_CHECK");
- ut_ad(base_table->corrupted == TRUE);
- sane = false;
- continue;
- }
-
- for (dict_index_t* aux_table_index =
- UT_LIST_GET_FIRST(aux_table->indexes);
- aux_table_index != NULL;
- aux_table_index =
- UT_LIST_GET_NEXT(indexes, aux_table_index)) {
-
- /* Check if auxillary table needed for FTS is sane. */
- if (aux_table_index->page == FIL_NULL) {
- dict_set_corrupted(
- dict_table_get_first_index(base_table),
- trx, "FTS_SANITY_CHECK");
- ut_ad(base_table->corrupted == TRUE);
- sane = false;
- }
- }
-
- dict_table_close(aux_table, FALSE, FALSE);
- }
-}