MySQL 9.1.0
Source Code Documentation
ReplicaInitializer Class Reference

Helper class used to initialize the replica (includes init_replica()) More...

#include <rpl_replica.h>

Public Member Functions

 ReplicaInitializer (bool opt_initialize, bool opt_skip_replica_start, Rpl_channel_filters &filters, char **replica_skip_erors)
 Constructor, calls init_replica() More...
 
int get_initialization_code () const
 Gets initialization code set-up at replica initialization. More...
 

Private Member Functions

void start_replication_threads (bool skip_replica_start=true)
 This function starts replication threads. More...
 
int init_replica ()
 Performs replica initialization, creates default replication channel and sets channel filters. More...
 
void print_channel_info () const
 In case debug mode is on, prints channel information. More...
 
void start_threads ()
 This function starts replication threads. More...
 

Static Private Member Functions

static void init_replica_psi_keys ()
 Initializes replica PSI keys in case PSI interface is available. More...
 

Private Attributes

bool m_opt_initialize_replica
 Indicates whether to initialize replica. More...
 
bool m_opt_skip_replica_start
 Indicates whether replica threads should be started or not. More...
 
int m_init_code = 0
 Replica initialization error code. More...
 
int m_thread_mask = 0
 Thread mask indicating type of the thread. More...
 

Detailed Description

Helper class used to initialize the replica (includes init_replica())

init_replica is called once during the mysqld start-up

Member Data Documentation

◆ m_init_code

int ReplicaInitializer::m_init_code = 0
private

Replica initialization error code.

◆ m_opt_initialize_replica

bool ReplicaInitializer::m_opt_initialize_replica
private
Initial value:
=
false

Indicates whether to initialize replica.

◆ m_opt_skip_replica_start

bool ReplicaInitializer::m_opt_skip_replica_start
private
Initial value:
=
false

Indicates whether replica threads should be started or not.

◆ m_thread_mask

int ReplicaInitializer::m_thread_mask = 0
private

Thread mask indicating type of the thread.


The documentation for this class was generated from the following files: