|
1 | 1 | /*****************************************************************************
|
2 | 2 |
|
3 | 3 | Copyright (c) 2011, 2021, Oracle and/or its affiliates.
|
4 |
| -Copyright (c) 2016, 2021, MariaDB Corporation. |
| 4 | +Copyright (c) 2016, 2022, MariaDB Corporation. |
5 | 5 |
|
6 | 6 | This program is free software; you can redistribute it and/or modify it under
|
7 | 7 | the terms of the GNU General Public License as published by the Free Software
|
@@ -230,9 +230,7 @@ ulint
|
230 | 230 | fts_add_doc_by_id(
|
231 | 231 | /*==============*/
|
232 | 232 | 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 */ |
236 | 234 | /******************************************************************//**
|
237 | 235 | Update the last document id. This function could create a new
|
238 | 236 | transaction to update the last document id.
|
@@ -2860,7 +2858,7 @@ fts_add(
|
2860 | 2858 |
|
2861 | 2859 | ut_a(row->state == FTS_INSERT || row->state == FTS_MODIFY);
|
2862 | 2860 |
|
2863 |
| - fts_add_doc_by_id(ftt, doc_id, row->fts_indexes); |
| 2861 | + fts_add_doc_by_id(ftt, doc_id); |
2864 | 2862 |
|
2865 | 2863 | mutex_enter(&table->fts->cache->deleted_lock);
|
2866 | 2864 | ++table->fts->cache->added;
|
@@ -3434,9 +3432,7 @@ ulint
|
3434 | 3432 | fts_add_doc_by_id(
|
3435 | 3433 | /*==============*/
|
3436 | 3434 | 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 */ |
3440 | 3436 | {
|
3441 | 3437 | mtr_t mtr;
|
3442 | 3438 | mem_heap_t* heap;
|
|
0 commit comments