Skip to content

Commit

Permalink
Cleanup: Remove an unused parameter of fts_add_doc_by_id()
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Jan 26, 2022
1 parent 7db489f commit 2cbf925
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions storage/innobase/fts/fts0fts.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 2011, 2021, Oracle and/or its affiliates.
Copyright (c) 2016, 2021, MariaDB Corporation.
Copyright (c) 2016, 2022, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Expand Down Expand Up @@ -230,9 +230,7 @@ ulint
fts_add_doc_by_id(
/*==============*/
fts_trx_table_t*ftt, /*!< in: FTS trx table */
doc_id_t doc_id, /*!< in: doc id */
ib_vector_t* fts_indexes MY_ATTRIBUTE((unused)));
/*!< in: affected fts indexes */
doc_id_t doc_id); /*!< in: doc id */
/******************************************************************//**
Update the last document id. This function could create a new
transaction to update the last document id.
Expand Down Expand Up @@ -2860,7 +2858,7 @@ fts_add(

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

fts_add_doc_by_id(ftt, doc_id, row->fts_indexes);
fts_add_doc_by_id(ftt, doc_id);

mutex_enter(&table->fts->cache->deleted_lock);
++table->fts->cache->added;
Expand Down Expand Up @@ -3434,9 +3432,7 @@ ulint
fts_add_doc_by_id(
/*==============*/
fts_trx_table_t*ftt, /*!< in: FTS trx table */
doc_id_t doc_id, /*!< in: doc id */
ib_vector_t* fts_indexes MY_ATTRIBUTE((unused)))
/*!< in: affected fts indexes */
doc_id_t doc_id) /*!< in: doc id */
{
mtr_t mtr;
mem_heap_t* heap;
Expand Down

0 comments on commit 2cbf925

Please sign in to comment.