MySQL 8.3.0
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 }
 
enum  enum_tls_ciphersuites { UNSPECIFIED = 0 , SPECIFIED_NULL , SPECIFIED_STRING }
 
enum  {
  LEX_MI_PK_CHECK_UNCHANGED = 0 , LEX_MI_PK_CHECK_STREAM = 1 , LEX_MI_PK_CHECK_ON = 2 , LEX_MI_PK_CHECK_OFF = 3 ,
  LEX_MI_PK_CHECK_GENERATE = 4
}
 Identifies what is the slave policy on primary keys in tables. More...
 
enum  { LEX_MI_ANONYMOUS_TO_GTID_UNCHANGED = 0 , LEX_MI_ANONYMOUS_TO_GTID_OFF , LEX_MI_ANONYMOUS_TO_GTID_LOCAL , LEX_MI_ANONYMOUS_TO_GTID_UUID }
 

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
 
enum LEX_MASTER_INFO:: { ... }  m_source_connection_auto_failover
 
enum LEX_MASTER_INFO:: { ... }  m_gtid_only
 
char * ssl_key
 
char * ssl_cert
 
char * ssl_ca
 
char * ssl_capath
 
char * ssl_cipher
 
char * ssl_crl
 
char * ssl_crlpath
 
char * tls_version
 
enum enum_tls_ciphersuites tls_ciphersuites
 
char * tls_ciphersuites_string
 
char * public_key_path
 
char * relay_log_name
 
ulong relay_log_pos
 
char * compression_algorithm
 
uint zstd_compression_level
 
Prealloced_array< ulong, 2 > repl_ignore_server_ids
 
bool privilege_checks_none
 Flag that is set to true whenever PRIVILEGE_CHECKS_USER is set to NULL as a part of a CHANGE MASTER TO statement. More...
 
const char * privilege_checks_username
 Username and hostname parts of the PRIVILEGE_CHECKS_USER, when it's set to a user. More...
 
const char * privilege_checks_hostname
 
int require_row_format
 Flag indicating if row format should be enforced for this channel event stream. More...
 
enum LEX_MASTER_INFO:: { ... }  require_table_primary_key_check
 Identifies what is the slave policy on primary keys in tables. More...
 
enum LEX_MASTER_INFO:: { ... }  assign_gtids_to_anonymous_transactions_type
 
const char * assign_gtids_to_anonymous_transactions_manual_uuid {nullptr}
 

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 

◆ anonymous enum

anonymous enum

Identifies what is the slave policy on primary keys in tables.

If set to STREAM it just replicates the value of sql_require_primary_key. If set to ON it fails when the source tries to replicate a table creation or alter operation that does not have a primary key. If set to OFF it does not enforce any policies on the channel for primary keys.

Enumerator
LEX_MI_PK_CHECK_UNCHANGED 
LEX_MI_PK_CHECK_STREAM 
LEX_MI_PK_CHECK_ON 
LEX_MI_PK_CHECK_OFF 
LEX_MI_PK_CHECK_GENERATE 

◆ anonymous enum

anonymous enum
Enumerator
LEX_MI_ANONYMOUS_TO_GTID_UNCHANGED 
LEX_MI_ANONYMOUS_TO_GTID_OFF 
LEX_MI_ANONYMOUS_TO_GTID_LOCAL 
LEX_MI_ANONYMOUS_TO_GTID_UUID 

◆ enum_tls_ciphersuites

Enumerator
UNSPECIFIED 
SPECIFIED_NULL 
SPECIFIED_STRING 

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

◆ assign_gtids_to_anonymous_transactions_manual_uuid

const char* LEX_MASTER_INFO::assign_gtids_to_anonymous_transactions_manual_uuid {nullptr}

◆ 

enum { ... } LEX_MASTER_INFO::assign_gtids_to_anonymous_transactions_type

◆ 

enum { ... } LEX_MASTER_INFO::auto_position

◆ bind_addr

char * LEX_MASTER_INFO::bind_addr

◆ channel

const char* LEX_MASTER_INFO::channel

◆ compression_algorithm

char* LEX_MASTER_INFO::compression_algorithm

◆ connect_retry

uint LEX_MASTER_INFO::connect_retry

◆ for_channel

bool LEX_MASTER_INFO::for_channel

◆ 

enum { ... } LEX_MASTER_INFO::get_public_key

◆ gtid

char* LEX_MASTER_INFO::gtid

◆ 

enum { ... } LEX_MASTER_INFO::gtid_until_condition

◆ 

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

◆ 

enum { ... } LEX_MASTER_INFO::m_gtid_only

◆ 

enum { ... } LEX_MASTER_INFO::m_source_connection_auto_failover

◆ network_namespace

char * LEX_MASTER_INFO::network_namespace

◆ password

char * LEX_MASTER_INFO::password

◆ port

uint LEX_MASTER_INFO::port

◆ 

enum { ... } LEX_MASTER_INFO::port_opt

◆ pos

ulonglong LEX_MASTER_INFO::pos

◆ privilege_checks_hostname

const char * LEX_MASTER_INFO::privilege_checks_hostname

◆ privilege_checks_none

bool LEX_MASTER_INFO::privilege_checks_none

Flag that is set to true whenever PRIVILEGE_CHECKS_USER is set to NULL as a part of a CHANGE MASTER TO statement.

◆ privilege_checks_username

const char* LEX_MASTER_INFO::privilege_checks_username

Username and hostname parts of the PRIVILEGE_CHECKS_USER, when it's set to a user.

◆ 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

◆ 

enum { ... } LEX_MASTER_INFO::repl_ignore_server_ids_opt

◆ require_row_format

int LEX_MASTER_INFO::require_row_format

Flag indicating if row format should be enforced for this channel event stream.

◆ 

enum { ... } LEX_MASTER_INFO::require_table_primary_key_check

Identifies what is the slave policy on primary keys in tables.

If set to STREAM it just replicates the value of sql_require_primary_key. If set to ON it fails when the source tries to replicate a table creation or alter operation that does not have a primary key. If set to OFF it does not enforce any policies on the channel for primary keys.

◆ retry_count

ulong LEX_MASTER_INFO::retry_count

◆ 

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

◆ 

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

◆ 

enum { ... } LEX_MASTER_INFO::ssl_verify_server_cert

◆ tls_ciphersuites

enum enum_tls_ciphersuites LEX_MASTER_INFO::tls_ciphersuites

◆ tls_ciphersuites_string

char* LEX_MASTER_INFO::tls_ciphersuites_string

◆ 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

◆ zstd_compression_level

uint LEX_MASTER_INFO::zstd_compression_level

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