File tree Expand file tree Collapse file tree 7 files changed +2
-25
lines changed Expand file tree Collapse file tree 7 files changed +2
-25
lines changed Original file line number Diff line number Diff line change @@ -5359,16 +5359,13 @@ fts_t::fts_t(
53595359mem_heap_t * heap)
53605360:
53615361added_synced(0 ), dict_locked(0 ),
5362- bg_threads(0 ),
53635362add_wq(NULL ),
53645363cache(NULL ),
53655364doc_col(ULINT_UNDEFINED), in_queue(false ),
53665365fts_heap(heap)
53675366{
53685367ut_a (table->fts == NULL );
53695368
5370- mutex_create (LATCH_ID_FTS_BG_THREADS, &bg_threads_mutex);
5371-
53725369ib_alloc_t * heap_alloc = ib_heap_allocator_create (fts_heap);
53735370
53745371indexes = ib_vector_create (heap_alloc, sizeof (dict_index_t *), 4 );
@@ -5379,8 +5376,6 @@ fts_t::fts_t(
53795376/* * fts_t destructor. */
53805377fts_t ::~fts_t ()
53815378{
5382- mutex_free (&bg_threads_mutex);
5383-
53845379ut_ad (add_wq == NULL );
53855380
53865381if (cache != NULL ) {
Original file line number Diff line number Diff line change @@ -586,7 +586,6 @@ static PSI_mutex_info all_innodb_mutexes[] = {
586586PSI_KEY(file_format_max_mutex),
587587PSI_KEY(fil_system_mutex),
588588PSI_KEY(flush_list_mutex),
589- PSI_KEY(fts_bg_threads_mutex),
590589PSI_KEY(fts_delete_mutex),
591590PSI_KEY(fts_doc_id_mutex),
592591PSI_KEY(log_flush_order_mutex),
Original file line number Diff line number Diff line change @@ -317,19 +317,11 @@ class fts_t {
317317/* * fts_t destructor. */
318318~fts_t ();
319319
320- /* * Mutex protecting bg_threads* and fts_add_wq. */
321- ib_mutex_t bg_threads_mutex;
322-
323- /* * Whether the ADDED table record sync-ed after
324- crash recovery; protected by bg_threads_mutex */
320+ /* * Whether the ADDED table record sync-ed after crash recovery */
325321unsigned added_synced:1 ;
326- /* * Whether the table holds dict_sys->mutex;
327- protected by bg_threads_mutex */
322+ /* * Whether the table holds dict_sys->mutex */
328323unsigned dict_locked:1 ;
329324
330- /* * Number of background threads accessing this table. */
331- ulint bg_threads;
332-
333325/* * Work queue for scheduling jobs for the FTS 'Add' thread, or NULL
334326if the thread has not yet been created. Each work item is a
335327fts_trx_doc_ids_t*. */
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ extern mysql_pfs_key_t dict_sys_mutex_key;
6060extern mysql_pfs_key_t file_format_max_mutex_key ;
6161extern mysql_pfs_key_t fil_system_mutex_key ;
6262extern mysql_pfs_key_t flush_list_mutex_key ;
63- extern mysql_pfs_key_t fts_bg_threads_mutex_key ;
6463extern mysql_pfs_key_t fts_delete_mutex_key ;
6564extern mysql_pfs_key_t fts_doc_id_mutex_key ;
6665extern mysql_pfs_key_t fts_pll_tokenize_mutex_key ;
Original file line number Diff line number Diff line change @@ -219,7 +219,6 @@ enum latch_level_t {
219219
220220SYNC_FTS_TOKENIZE,
221221SYNC_FTS_OPTIMIZE,
222- SYNC_FTS_BG_THREADS,
223222SYNC_FTS_CACHE_INIT,
224223SYNC_RECV,
225224SYNC_LOG_FLUSH_ORDER,
@@ -305,7 +304,6 @@ enum latch_id_t {
305304LATCH_ID_FILE_FORMAT_MAX,
306305LATCH_ID_FIL_SYSTEM,
307306LATCH_ID_FLUSH_LIST,
308- LATCH_ID_FTS_BG_THREADS,
309307LATCH_ID_FTS_DELETE,
310308LATCH_ID_FTS_DOC_ID,
311309LATCH_ID_FTS_PLL_TOKENIZE,
Original file line number Diff line number Diff line change @@ -464,7 +464,6 @@ LatchDebug::LatchDebug()
464464LEVEL_MAP_INSERT (SYNC_WORK_QUEUE);
465465LEVEL_MAP_INSERT (SYNC_FTS_TOKENIZE);
466466LEVEL_MAP_INSERT (SYNC_FTS_OPTIMIZE);
467- LEVEL_MAP_INSERT (SYNC_FTS_BG_THREADS);
468467LEVEL_MAP_INSERT (SYNC_FTS_CACHE_INIT);
469468LEVEL_MAP_INSERT (SYNC_RECV);
470469LEVEL_MAP_INSERT (SYNC_LOG_FLUSH_ORDER);
@@ -743,7 +742,6 @@ LatchDebug::check_order(
743742
744743case SYNC_MONITOR_MUTEX:
745744case SYNC_RECV:
746- case SYNC_FTS_BG_THREADS:
747745case SYNC_WORK_QUEUE:
748746case SYNC_FTS_TOKENIZE:
749747case SYNC_FTS_OPTIMIZE:
@@ -1315,9 +1313,6 @@ sync_latch_meta_init()
13151313
13161314LATCH_ADD_MUTEX (FLUSH_LIST, SYNC_BUF_FLUSH_LIST, flush_list_mutex_key);
13171315
1318- LATCH_ADD_MUTEX (FTS_BG_THREADS, SYNC_FTS_BG_THREADS,
1319- fts_bg_threads_mutex_key);
1320-
13211316LATCH_ADD_MUTEX (FTS_DELETE, SYNC_FTS_OPTIMIZE, fts_delete_mutex_key);
13221317
13231318LATCH_ADD_MUTEX (FTS_DOC_ID, SYNC_FTS_OPTIMIZE, fts_doc_id_mutex_key);
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ mysql_pfs_key_t dict_sys_mutex_key;
4646mysql_pfs_key_t file_format_max_mutex_key;
4747mysql_pfs_key_t fil_system_mutex_key;
4848mysql_pfs_key_t flush_list_mutex_key;
49- mysql_pfs_key_t fts_bg_threads_mutex_key;
5049mysql_pfs_key_t fts_delete_mutex_key;
5150mysql_pfs_key_t fts_doc_id_mutex_key;
5251mysql_pfs_key_t fts_pll_tokenize_mutex_key;
You can’t perform that action at this time.
0 commit comments