Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion storage/innobase/fts/fts0opt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2851,7 +2851,7 @@ fts_optimize_sync_table(
Optimize all FTS tables.
@return Dummy return */
os_thread_ret_t
fts_optimize_thread(
DECLARE_THREAD(fts_optimize_thread)(
/*================*/
void* arg) /*!< in: work queue*/
{
Expand All @@ -2864,6 +2864,10 @@ fts_optimize_thread(
ut_ad(!srv_read_only_mode);
my_thread_init();

#ifdef UNIV_PFS_THREAD
pfs_register_thread(fts_optimize_thread_key);
#endif /* UNIV_PFS_THREAD */

ut_ad(fts_slots);

/* Assign number of tables added in fts_slots_t to n_tables */
Expand Down
1 change: 1 addition & 0 deletions storage/innobase/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ static PSI_thread_info all_innodb_threads[] = {
PSI_KEY(srv_purge_thread),
PSI_KEY(srv_worker_thread),
PSI_KEY(trx_rollback_clean_thread),
PSI_KEY(fts_optimize_thread),
};
# endif /* UNIV_PFS_THREAD */

Expand Down
1 change: 1 addition & 0 deletions storage/innobase/include/srv0srv.h
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ extern mysql_pfs_key_t srv_monitor_thread_key;
extern mysql_pfs_key_t srv_purge_thread_key;
extern mysql_pfs_key_t srv_worker_thread_key;
extern mysql_pfs_key_t trx_rollback_clean_thread_key;
extern mysql_pfs_key_t fts_optimize_thread_key;

/* This macro register the current thread and its key with performance
schema */
Expand Down
1 change: 1 addition & 0 deletions storage/innobase/srv/srv0start.cc
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ mysql_pfs_key_t srv_master_thread_key;
mysql_pfs_key_t srv_monitor_thread_key;
mysql_pfs_key_t srv_purge_thread_key;
mysql_pfs_key_t srv_worker_thread_key;
mysql_pfs_key_t fts_optimize_thread_key;
#endif /* UNIV_PFS_THREAD */

#ifdef HAVE_PSI_STAGE_INTERFACE
Expand Down