![]()  | 
  
    MySQL 8.0.44
    
   Source Code Documentation 
   | 
 
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_INFO & | operator= (const LEX_MASTER_INFO &) | 
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.
| 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 | 
      
  | 
  inline | 
      
  | 
  private | 
| void LEX_MASTER_INFO::initialize | ( | ) | 
Initializes everything to zero/NULL/empty.
      
  | 
  private | 
| void LEX_MASTER_INFO::set_unspecified | ( | ) | 
Sets all fields to their "unspecified" value.
| 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 | 
| char * LEX_MASTER_INFO::bind_addr | 
| const char* LEX_MASTER_INFO::channel | 
| char* LEX_MASTER_INFO::compression_algorithm | 
| uint LEX_MASTER_INFO::connect_retry | 
| bool LEX_MASTER_INFO::for_channel | 
| enum { ... } LEX_MASTER_INFO::get_public_key | 
| char* LEX_MASTER_INFO::gtid | 
| enum { ... } LEX_MASTER_INFO::gtid_until_condition | 
| enum { ... } LEX_MASTER_INFO::heartbeat_opt | 
| float LEX_MASTER_INFO::heartbeat_period | 
| char* LEX_MASTER_INFO::host | 
| char * LEX_MASTER_INFO::log_file_name | 
| enum { ... } LEX_MASTER_INFO::m_gtid_only | 
| enum { ... } LEX_MASTER_INFO::m_source_connection_auto_failover | 
| char * LEX_MASTER_INFO::network_namespace | 
| char * LEX_MASTER_INFO::password | 
| uint LEX_MASTER_INFO::port | 
| enum { ... } LEX_MASTER_INFO::port_opt | 
| ulonglong LEX_MASTER_INFO::pos | 
| const char * LEX_MASTER_INFO::privilege_checks_hostname | 
| 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. 
| const char* LEX_MASTER_INFO::privilege_checks_username | 
Username and hostname parts of the PRIVILEGE_CHECKS_USER, when it's set to a user. 
| char* LEX_MASTER_INFO::public_key_path | 
| char* LEX_MASTER_INFO::relay_log_name | 
| ulong LEX_MASTER_INFO::relay_log_pos | 
| Prealloced_array<ulong, 2> LEX_MASTER_INFO::repl_ignore_server_ids | 
| enum { ... } LEX_MASTER_INFO::repl_ignore_server_ids_opt | 
| 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.
| ulong LEX_MASTER_INFO::retry_count | 
| enum { ... } LEX_MASTER_INFO::retry_count_opt | 
| ulong LEX_MASTER_INFO::server_id | 
| bool LEX_MASTER_INFO::slave_until | 
| int LEX_MASTER_INFO::sql_delay | 
| enum { ... } LEX_MASTER_INFO::ssl | 
| char * LEX_MASTER_INFO::ssl_ca | 
| char * LEX_MASTER_INFO::ssl_capath | 
| char * LEX_MASTER_INFO::ssl_cert | 
| char * LEX_MASTER_INFO::ssl_cipher | 
| char* LEX_MASTER_INFO::ssl_crl | 
| char * LEX_MASTER_INFO::ssl_crlpath | 
| char* LEX_MASTER_INFO::ssl_key | 
| enum { ... } LEX_MASTER_INFO::ssl_verify_server_cert | 
| enum enum_tls_ciphersuites LEX_MASTER_INFO::tls_ciphersuites | 
| char* LEX_MASTER_INFO::tls_ciphersuites_string | 
| char * LEX_MASTER_INFO::tls_version | 
| bool LEX_MASTER_INFO::until_after_gaps | 
| char * LEX_MASTER_INFO::user | 
| char* LEX_MASTER_INFO::view_id | 
| uint LEX_MASTER_INFO::zstd_compression_level |