Skip to content

Commit 2cbf925

Browse files
committed
Cleanup: Remove an unused parameter of fts_add_doc_by_id()
1 parent 7db489f commit 2cbf925

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

storage/innobase/fts/fts0fts.cc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*****************************************************************************
22
33
Copyright (c) 2011, 2021, Oracle and/or its affiliates.
4-
Copyright (c) 2016, 2021, MariaDB Corporation.
4+
Copyright (c) 2016, 2022, MariaDB Corporation.
55
66
This program is free software; you can redistribute it and/or modify it under
77
the terms of the GNU General Public License as published by the Free Software
@@ -230,9 +230,7 @@ ulint
230230
fts_add_doc_by_id(
231231
/*==============*/
232232
fts_trx_table_t*ftt, /*!< in: FTS trx table */
233-
doc_id_t doc_id, /*!< in: doc id */
234-
ib_vector_t* fts_indexes MY_ATTRIBUTE((unused)));
235-
/*!< in: affected fts indexes */
233+
doc_id_t doc_id); /*!< in: doc id */
236234
/******************************************************************//**
237235
Update the last document id. This function could create a new
238236
transaction to update the last document id.
@@ -2860,7 +2858,7 @@ fts_add(
28602858

28612859
ut_a(row->state == FTS_INSERT || row->state == FTS_MODIFY);
28622860

2863-
fts_add_doc_by_id(ftt, doc_id, row->fts_indexes);
2861+
fts_add_doc_by_id(ftt, doc_id);
28642862

28652863
mutex_enter(&table->fts->cache->deleted_lock);
28662864
++table->fts->cache->added;
@@ -3434,9 +3432,7 @@ ulint
34343432
fts_add_doc_by_id(
34353433
/*==============*/
34363434
fts_trx_table_t*ftt, /*!< in: FTS trx table */
3437-
doc_id_t doc_id, /*!< in: doc id */
3438-
ib_vector_t* fts_indexes MY_ATTRIBUTE((unused)))
3439-
/*!< in: affected fts indexes */
3435+
doc_id_t doc_id) /*!< in: doc id */
34403436
{
34413437
mtr_t mtr;
34423438
mem_heap_t* heap;

0 commit comments

Comments
 (0)