Commit 2cbf9252 authored by Marko Mäkelä's avatar Marko Mäkelä

Cleanup: Remove an unused parameter of fts_add_doc_by_id()

parent 7db489fc
/***************************************************************************** /*****************************************************************************
Copyright (c) 2011, 2021, Oracle and/or its affiliates. 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 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 the terms of the GNU General Public License as published by the Free Software
...@@ -230,9 +230,7 @@ ulint ...@@ -230,9 +230,7 @@ ulint
fts_add_doc_by_id( fts_add_doc_by_id(
/*==============*/ /*==============*/
fts_trx_table_t*ftt, /*!< in: FTS trx table */ fts_trx_table_t*ftt, /*!< in: FTS trx table */
doc_id_t doc_id, /*!< in: doc id */ doc_id_t doc_id); /*!< in: doc id */
ib_vector_t* fts_indexes MY_ATTRIBUTE((unused)));
/*!< in: affected fts indexes */
/******************************************************************//** /******************************************************************//**
Update the last document id. This function could create a new Update the last document id. This function could create a new
transaction to update the last document id. transaction to update the last document id.
...@@ -2860,7 +2858,7 @@ fts_add( ...@@ -2860,7 +2858,7 @@ fts_add(
ut_a(row->state == FTS_INSERT || row->state == FTS_MODIFY); 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); mutex_enter(&table->fts->cache->deleted_lock);
++table->fts->cache->added; ++table->fts->cache->added;
...@@ -3434,9 +3432,7 @@ ulint ...@@ -3434,9 +3432,7 @@ ulint
fts_add_doc_by_id( fts_add_doc_by_id(
/*==============*/ /*==============*/
fts_trx_table_t*ftt, /*!< in: FTS trx table */ fts_trx_table_t*ftt, /*!< in: FTS trx table */
doc_id_t doc_id, /*!< in: doc id */ doc_id_t doc_id) /*!< in: doc id */
ib_vector_t* fts_indexes MY_ATTRIBUTE((unused)))
/*!< in: affected fts indexes */
{ {
mtr_t mtr; mtr_t mtr;
mem_heap_t* heap; mem_heap_t* heap;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment