MySQL 8.0.40
Source Code Documentation
|
#include <rpl_handler.h>
Public Types | |
typedef Server_state_observer | Observer |
Public Types inherited from Delegate | |
typedef List< Observer_info > | Observer_info_list |
typedef List_iterator< Observer_info > | Observer_info_iterator |
Public Member Functions | |
Server_state_delegate () | |
int | before_handle_connection (THD *thd) |
This hook MUST be invoked after ALL recovery operations are performed and the server is ready to serve clients. More... | |
int | before_recovery (THD *thd) |
This hook MUST be invoked before ANY recovery action is started. More... | |
int | after_engine_recovery (THD *thd) |
This hook MUST be invoked after the recovery from the engine is complete. More... | |
int | after_recovery (THD *thd) |
This hook MUST be invoked after the server has completed the local recovery. More... | |
int | before_server_shutdown (THD *thd) |
This hook MUST be invoked before server shutdown action is initiated. More... | |
int | after_server_shutdown (THD *thd) |
This hook MUST be invoked after server shutdown operation is complete. More... | |
int | after_dd_upgrade_from_57 (THD *thd) |
This hook MUST be invoked after upgrade from .frm to data dictionary. More... | |
Public Member Functions inherited from Delegate | |
Delegate (PSI_rwlock_key key) | |
Class constructor. More... | |
virtual | ~Delegate () |
Class destructor. More... | |
int | add_observer (void *observer, st_plugin_int *plugin) |
Adds an observer to the observer list. More... | |
int | remove_observer (void *observer) |
Removes an observer from the observer list. More... | |
Observer_info_iterator | observer_info_iter () |
Retrieves an iterator for the observer list. More... | |
bool | is_empty () |
Returns whether or not there are registered observers. More... | |
int | read_lock () |
Acquires this Delegate class instance lock in read/shared mode. More... | |
int | write_lock () |
Acquires this Delegate class instance lock in write/exclusive mode. More... | |
int | unlock () |
Releases this Delegate class instance lock. More... | |
bool | is_inited () |
Returns whether or not this instance was initialized. More... | |
void | update_lock_type () |
Toggles the type of lock between a classical read-write lock and a shared-exclusive spin-lock. More... | |
void | update_plugin_ref_count () |
Increases the info->plugin usage reference counting if replication_optimize_for_static_plugin_config is being enabled, in order to prevent plugin removal. More... | |
bool | use_rw_lock_type () |
Returns whether or not to use the classic read-write lock. More... | |
bool | use_spin_lock_type () |
Returns whether or not to use the shared spin-lock. More... | |
|
inline |
int Server_state_delegate::after_dd_upgrade_from_57 | ( | THD * | thd | ) |
This hook MUST be invoked after upgrade from .frm to data dictionary.
int Server_state_delegate::after_engine_recovery | ( | THD * | thd | ) |
This hook MUST be invoked after the recovery from the engine is complete.
int Server_state_delegate::after_recovery | ( | THD * | thd | ) |
This hook MUST be invoked after the server has completed the local recovery.
The server can proceed with the further operations like engaging in distributed recovery etc.
int Server_state_delegate::after_server_shutdown | ( | THD * | thd | ) |
This hook MUST be invoked after server shutdown operation is complete.
int Server_state_delegate::before_handle_connection | ( | THD * | thd | ) |
This hook MUST be invoked after ALL recovery operations are performed and the server is ready to serve clients.
int Server_state_delegate::before_recovery | ( | THD * | thd | ) |
This hook MUST be invoked before ANY recovery action is started.
int Server_state_delegate::before_server_shutdown | ( | THD * | thd | ) |
This hook MUST be invoked before server shutdown action is initiated.