MySQL  8.0.17
Source Code Documentation
LEX_MASTER_INFO Struct Reference

Structure to hold parameters for CHANGE MASTER, START SLAVE, and STOP SLAVE. More...

#include <sql_lex.h>

Public Types

enum  { UNTIL_SQL_BEFORE_GTIDS = 0, UNTIL_SQL_AFTER_GTIDS }
 
enum  { LEX_MI_UNCHANGED = 0, LEX_MI_DISABLE, LEX_MI_ENABLE }
 

Public Member Functions

 LEX_MASTER_INFO ()
 
void initialize ()
 Initializes everything to zero/NULL/empty. More...
 
void set_unspecified ()
 Sets all fields to their "unspecified" value. More...
 

Public Attributes

char * host
 
char * user
 
char * password
 
char * log_file_name
 
char * bind_addr
 
char * network_namespace
 
uint port
 
uint connect_retry
 
float heartbeat_period
 
int sql_delay
 
ulonglong pos
 
ulong server_id
 
ulong retry_count
 
char * gtid
 
char * view_id
 
const char * channel
 
enum LEX_MASTER_INFO:: { ... }  gtid_until_condition
 
bool until_after_gaps
 
bool slave_until
 
bool for_channel
 
enum LEX_MASTER_INFO:: { ... }  ssl
 
enum LEX_MASTER_INFO:: { ... }  ssl_verify_server_cert
 
enum LEX_MASTER_INFO:: { ... }  heartbeat_opt
 
enum LEX_MASTER_INFO:: { ... }  repl_ignore_server_ids_opt
 
enum LEX_MASTER_INFO:: { ... }  retry_count_opt
 
enum LEX_MASTER_INFO:: { ... }  auto_position
 
enum LEX_MASTER_INFO:: { ... }  port_opt
 
enum LEX_MASTER_INFO:: { ... }  get_public_key
 
char * ssl_key
 
char * ssl_cert
 
char * ssl_ca
 
char * ssl_capath
 
char * ssl_cipher
 
char * ssl_crl
 
char * ssl_crlpath
 
char * tls_version
 
char * public_key_path
 
char * relay_log_name
 
ulong relay_log_pos
 
Prealloced_array< ulong, 2 > repl_ignore_server_ids
 

Private Member Functions

 LEX_MASTER_INFO (const LEX_MASTER_INFO &)
 
LEX_MASTER_INFOoperator= (const LEX_MASTER_INFO &)
 

Detailed Description

Structure to hold parameters for CHANGE MASTER, START SLAVE, and STOP SLAVE.

Remark: this should not be confused with Master_info (and perhaps would better be renamed to st_lex_replication_info). Some fields, e.g., delay, are saved in Relay_log_info, not in Master_info.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
UNTIL_SQL_BEFORE_GTIDS 
UNTIL_SQL_AFTER_GTIDS 

◆ anonymous enum

anonymous enum
Enumerator
LEX_MI_UNCHANGED 
LEX_MI_DISABLE 
LEX_MI_ENABLE 

Constructor & Destructor Documentation

◆ LEX_MASTER_INFO() [1/2]

LEX_MASTER_INFO::LEX_MASTER_INFO ( )
inline

◆ LEX_MASTER_INFO() [2/2]

LEX_MASTER_INFO::LEX_MASTER_INFO ( const LEX_MASTER_INFO )
private

Member Function Documentation

◆ initialize()

void LEX_MASTER_INFO::initialize ( )

Initializes everything to zero/NULL/empty.

◆ operator=()

LEX_MASTER_INFO& LEX_MASTER_INFO::operator= ( const LEX_MASTER_INFO )
private

◆ set_unspecified()

void LEX_MASTER_INFO::set_unspecified ( )

Sets all fields to their "unspecified" value.

Member Data Documentation

◆ auto_position

enum { ... } LEX_MASTER_INFO::auto_position

◆ bind_addr

char * LEX_MASTER_INFO::bind_addr

◆ channel

const char* LEX_MASTER_INFO::channel

◆ connect_retry

uint LEX_MASTER_INFO::connect_retry

◆ for_channel

bool LEX_MASTER_INFO::for_channel

◆ get_public_key

enum { ... } LEX_MASTER_INFO::get_public_key

◆ gtid

char* LEX_MASTER_INFO::gtid

◆ gtid_until_condition

enum { ... } LEX_MASTER_INFO::gtid_until_condition

◆ heartbeat_opt

enum { ... } LEX_MASTER_INFO::heartbeat_opt

◆ heartbeat_period

float LEX_MASTER_INFO::heartbeat_period

◆ host

char* LEX_MASTER_INFO::host

◆ log_file_name

char * LEX_MASTER_INFO::log_file_name

◆ network_namespace

char * LEX_MASTER_INFO::network_namespace

◆ password

char * LEX_MASTER_INFO::password

◆ port

uint LEX_MASTER_INFO::port

◆ port_opt

enum { ... } LEX_MASTER_INFO::port_opt

◆ pos

ulonglong LEX_MASTER_INFO::pos

◆ public_key_path

char* LEX_MASTER_INFO::public_key_path

◆ relay_log_name

char* LEX_MASTER_INFO::relay_log_name

◆ relay_log_pos

ulong LEX_MASTER_INFO::relay_log_pos

◆ repl_ignore_server_ids

Prealloced_array<ulong, 2> LEX_MASTER_INFO::repl_ignore_server_ids

◆ repl_ignore_server_ids_opt

enum { ... } LEX_MASTER_INFO::repl_ignore_server_ids_opt

◆ retry_count

ulong LEX_MASTER_INFO::retry_count

◆ retry_count_opt

enum { ... } LEX_MASTER_INFO::retry_count_opt

◆ server_id

ulong LEX_MASTER_INFO::server_id

◆ slave_until

bool LEX_MASTER_INFO::slave_until

◆ sql_delay

int LEX_MASTER_INFO::sql_delay

◆ ssl

enum { ... } LEX_MASTER_INFO::ssl

◆ ssl_ca

char * LEX_MASTER_INFO::ssl_ca

◆ ssl_capath

char * LEX_MASTER_INFO::ssl_capath

◆ ssl_cert

char * LEX_MASTER_INFO::ssl_cert

◆ ssl_cipher

char * LEX_MASTER_INFO::ssl_cipher

◆ ssl_crl

char* LEX_MASTER_INFO::ssl_crl

◆ ssl_crlpath

char * LEX_MASTER_INFO::ssl_crlpath

◆ ssl_key

char* LEX_MASTER_INFO::ssl_key

◆ ssl_verify_server_cert

enum { ... } LEX_MASTER_INFO::ssl_verify_server_cert

◆ tls_version

char * LEX_MASTER_INFO::tls_version

◆ until_after_gaps

bool LEX_MASTER_INFO::until_after_gaps

◆ user

char * LEX_MASTER_INFO::user

◆ view_id

char* LEX_MASTER_INFO::view_id

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