Skip to content

Commit

Permalink
Cleanup: Remove unused fts_cache_t::optimize_lock
Browse files Browse the repository at this point in the history
This has been unused from the very beginning
(mysql/mysql-server@d5e512a).
  • Loading branch information
dr-m committed Sep 30, 2020
1 parent aa2f263 commit cd5f4d2
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions storage/innobase/fts/fts0fts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ fts_cache_destroy(fts_cache_t* cache)
{
rw_lock_free(&cache->lock);
rw_lock_free(&cache->init_lock);
mutex_free(&cache->optimize_lock);
mutex_free(&cache->deleted_lock);
mutex_free(&cache->doc_id_lock);
os_event_destroy(cache->sync->event);
Expand Down Expand Up @@ -623,8 +622,6 @@ fts_cache_create(

mutex_create(LATCH_ID_FTS_DELETE, &cache->deleted_lock);

mutex_create(LATCH_ID_FTS_OPTIMIZE, &cache->optimize_lock);

mutex_create(LATCH_ID_FTS_DOC_ID, &cache->doc_id_lock);

/* This is the heap used to create the cache itself. */
Expand Down
1 change: 0 additions & 1 deletion storage/innobase/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,6 @@ static PSI_mutex_info all_innodb_mutexes[] = {
PSI_KEY(flush_list_mutex),
PSI_KEY(fts_bg_threads_mutex),
PSI_KEY(fts_delete_mutex),
PSI_KEY(fts_optimize_mutex),
PSI_KEY(fts_doc_id_mutex),
PSI_KEY(log_flush_order_mutex),
PSI_KEY(hash_table_mutex),
Expand Down
2 changes: 0 additions & 2 deletions storage/innobase/include/fts0types.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ struct fts_cache_t {
intialization, it has different
SYNC level as above cache lock */

ib_mutex_t optimize_lock; /*!< Lock for OPTIMIZE */

ib_mutex_t deleted_lock; /*!< Lock covering deleted_doc_ids */

ib_mutex_t doc_id_lock; /*!< Lock covering Doc ID */
Expand Down
1 change: 0 additions & 1 deletion storage/innobase/include/sync0sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ extern mysql_pfs_key_t fil_system_mutex_key;
extern mysql_pfs_key_t flush_list_mutex_key;
extern mysql_pfs_key_t fts_bg_threads_mutex_key;
extern mysql_pfs_key_t fts_delete_mutex_key;
extern mysql_pfs_key_t fts_optimize_mutex_key;
extern mysql_pfs_key_t fts_doc_id_mutex_key;
extern mysql_pfs_key_t fts_pll_tokenize_mutex_key;
extern mysql_pfs_key_t hash_table_mutex_key;
Expand Down
1 change: 0 additions & 1 deletion storage/innobase/include/sync0types.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ enum latch_id_t {
LATCH_ID_FLUSH_LIST,
LATCH_ID_FTS_BG_THREADS,
LATCH_ID_FTS_DELETE,
LATCH_ID_FTS_OPTIMIZE,
LATCH_ID_FTS_DOC_ID,
LATCH_ID_FTS_PLL_TOKENIZE,
LATCH_ID_HASH_TABLE_MUTEX,
Expand Down
3 changes: 0 additions & 3 deletions storage/innobase/sync/sync0debug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1320,9 +1320,6 @@ sync_latch_meta_init()

LATCH_ADD_MUTEX(FTS_DELETE, SYNC_FTS_OPTIMIZE, fts_delete_mutex_key);

LATCH_ADD_MUTEX(FTS_OPTIMIZE, SYNC_FTS_OPTIMIZE,
fts_optimize_mutex_key);

LATCH_ADD_MUTEX(FTS_DOC_ID, SYNC_FTS_OPTIMIZE, fts_doc_id_mutex_key);

LATCH_ADD_MUTEX(FTS_PLL_TOKENIZE, SYNC_FTS_TOKENIZE,
Expand Down
1 change: 0 additions & 1 deletion storage/innobase/sync/sync0sync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ mysql_pfs_key_t fil_system_mutex_key;
mysql_pfs_key_t flush_list_mutex_key;
mysql_pfs_key_t fts_bg_threads_mutex_key;
mysql_pfs_key_t fts_delete_mutex_key;
mysql_pfs_key_t fts_optimize_mutex_key;
mysql_pfs_key_t fts_doc_id_mutex_key;
mysql_pfs_key_t fts_pll_tokenize_mutex_key;
mysql_pfs_key_t hash_table_mutex_key;
Expand Down

0 comments on commit cd5f4d2

Please sign in to comment.