MySQL 8.0.39
Source Code Documentation
Srv_threads Struct Reference

Structure which keeps shared future objects for InnoDB background threads. More...

#include <srv0srv.h>

Public Attributes

IB_thread m_monitor
 Monitor thread (prints info). More...
 
IB_thread m_error_monitor
 Error monitor thread. More...
 
IB_thread m_log_files_governor
 Redo files governor thread. More...
 
IB_thread m_log_checkpointer
 Redo checkpointer thread. More...
 
IB_thread m_log_writer
 Redo writer thread. More...
 
IB_thread m_log_flusher
 Redo flusher thread. More...
 
IB_thread m_log_write_notifier
 Redo write notifier thread. More...
 
IB_thread m_log_flush_notifier
 Redo flush notifier thread. More...
 
IB_thread m_backup_log_archiver
 Redo log archiver (used by backup). More...
 
IB_thread m_buf_dump
 Buffer pool dump thread. More...
 
IB_thread m_buf_resize
 Buffer pool resize thread. More...
 
IB_thread m_dict_stats
 Dict stats background thread. More...
 
IB_thread m_lock_wait_timeout
 Thread detecting lock wait timeouts. More...
 
IB_thread m_master
 The master thread. More...
 
IB_thread m_ts_alter_encrypt
 The ts_alter_encrypt thread. More...
 
IB_thread m_trx_recovery_rollback
 Thread doing rollbacks during recovery. More...
 
IB_thread m_recv_writer
 Thread writing recovered pages during recovery. More...
 
IB_thread m_purge_coordinator
 Purge coordinator (also being a worker) More...
 
size_t m_purge_workers_n
 Number of purge workers and size of array below. More...
 
IB_threadm_purge_workers
 Purge workers. More...
 
IB_thread m_page_cleaner_coordinator
 Page cleaner coordinator (also being a worker). More...
 
size_t m_page_cleaner_workers_n
 Number of page cleaner workers and size of array below. More...
 
IB_threadm_page_cleaner_workers
 Page cleaner workers. More...
 
IB_thread m_log_archiver
 Archiver's log archiver (used by Clone). More...
 
IB_thread m_page_archiver
 Archiver's page archiver (used by Clone). More...
 
IB_thread m_fts_optimize
 Thread doing optimization for FTS index. More...
 
IB_thread m_gtid_persister
 Thread for GTID persistence. More...
 
os_event_t m_shutdown_cleanup_dbg
 Used in test scenario to delay threads' cleanup until the pre_dd_shutdown is ended and final plugin's shutdown is started (when plugin is DELETED). More...
 
os_event_t m_master_ready_for_dd_shutdown
 When the master thread notices that shutdown has started (by noticing srv_shutdown_state >= SRV_SHUTDOWN_PRE_DD_AND_SYSTEM_TRANSACTIONS), it exits its main loop. More...
 

Detailed Description

Structure which keeps shared future objects for InnoDB background threads.

One should use these objects to check if threads exited.

Member Data Documentation

◆ m_backup_log_archiver

IB_thread Srv_threads::m_backup_log_archiver

Redo log archiver (used by backup).

◆ m_buf_dump

IB_thread Srv_threads::m_buf_dump

Buffer pool dump thread.

◆ m_buf_resize

IB_thread Srv_threads::m_buf_resize

Buffer pool resize thread.

◆ m_dict_stats

IB_thread Srv_threads::m_dict_stats

Dict stats background thread.

◆ m_error_monitor

IB_thread Srv_threads::m_error_monitor

Error monitor thread.

◆ m_fts_optimize

IB_thread Srv_threads::m_fts_optimize

Thread doing optimization for FTS index.

◆ m_gtid_persister

IB_thread Srv_threads::m_gtid_persister

Thread for GTID persistence.

◆ m_lock_wait_timeout

IB_thread Srv_threads::m_lock_wait_timeout

Thread detecting lock wait timeouts.

◆ m_log_archiver

IB_thread Srv_threads::m_log_archiver

Archiver's log archiver (used by Clone).

◆ m_log_checkpointer

IB_thread Srv_threads::m_log_checkpointer

Redo checkpointer thread.

◆ m_log_files_governor

IB_thread Srv_threads::m_log_files_governor

Redo files governor thread.

◆ m_log_flush_notifier

IB_thread Srv_threads::m_log_flush_notifier

Redo flush notifier thread.

◆ m_log_flusher

IB_thread Srv_threads::m_log_flusher

Redo flusher thread.

◆ m_log_write_notifier

IB_thread Srv_threads::m_log_write_notifier

Redo write notifier thread.

◆ m_log_writer

IB_thread Srv_threads::m_log_writer

Redo writer thread.

◆ m_master

IB_thread Srv_threads::m_master

The master thread.

◆ m_master_ready_for_dd_shutdown

os_event_t Srv_threads::m_master_ready_for_dd_shutdown

When the master thread notices that shutdown has started (by noticing srv_shutdown_state >= SRV_SHUTDOWN_PRE_DD_AND_SYSTEM_TRANSACTIONS), it exits its main loop.

Then the master thread proceeds with actions related to tasks:

  • which it has been responsible for,
  • and which might depend on DD objects. After finishing them, the master thread sets this event.
    Remarks
    We use this event to wait in srv_pre_dd_shutdown before we enter next phase (SRV_SHUTDOWN_PURGE) in which master thread is not allowed to use system transactions or touch DD objects.

◆ m_monitor

IB_thread Srv_threads::m_monitor

Monitor thread (prints info).

◆ m_page_archiver

IB_thread Srv_threads::m_page_archiver

Archiver's page archiver (used by Clone).

◆ m_page_cleaner_coordinator

IB_thread Srv_threads::m_page_cleaner_coordinator

Page cleaner coordinator (also being a worker).

◆ m_page_cleaner_workers

IB_thread* Srv_threads::m_page_cleaner_workers

Page cleaner workers.

Note that m_page_cleaner_workers[0] is the same shared state as m_page_cleaner_coordinator.

◆ m_page_cleaner_workers_n

size_t Srv_threads::m_page_cleaner_workers_n

Number of page cleaner workers and size of array below.

◆ m_purge_coordinator

IB_thread Srv_threads::m_purge_coordinator

Purge coordinator (also being a worker)

◆ m_purge_workers

IB_thread* Srv_threads::m_purge_workers

Purge workers.

Note that the m_purge_workers[0] is the same shared state as m_purge_coordinator.

◆ m_purge_workers_n

size_t Srv_threads::m_purge_workers_n

Number of purge workers and size of array below.

◆ m_recv_writer

IB_thread Srv_threads::m_recv_writer

Thread writing recovered pages during recovery.

◆ m_shutdown_cleanup_dbg

os_event_t Srv_threads::m_shutdown_cleanup_dbg

Used in test scenario to delay threads' cleanup until the pre_dd_shutdown is ended and final plugin's shutdown is started (when plugin is DELETED).

Note that you may only delay the shutdown for threads for which there is no waiting procedure used in the pre_dd_shutdown.

◆ m_trx_recovery_rollback

IB_thread Srv_threads::m_trx_recovery_rollback

Thread doing rollbacks during recovery.

◆ m_ts_alter_encrypt

IB_thread Srv_threads::m_ts_alter_encrypt

The ts_alter_encrypt thread.


The documentation for this struct was generated from the following file: