MySQL 9.0.0
Source Code Documentation
|
Structure to hold parameters for CHANGE REPLICATION SOURCE, START REPLICA, and STOP REPLICA. 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_SOURCE_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_SOURCE_INFO:: { ... } | gtid_until_condition |
bool | until_after_gaps |
bool | replica_until |
bool | for_channel |
enum LEX_SOURCE_INFO:: { ... } | ssl |
enum LEX_SOURCE_INFO:: { ... } | ssl_verify_server_cert |
enum LEX_SOURCE_INFO:: { ... } | heartbeat_opt |
enum LEX_SOURCE_INFO:: { ... } | repl_ignore_server_ids_opt |
enum LEX_SOURCE_INFO:: { ... } | retry_count_opt |
enum LEX_SOURCE_INFO:: { ... } | auto_position |
enum LEX_SOURCE_INFO:: { ... } | port_opt |
enum LEX_SOURCE_INFO:: { ... } | get_public_key |
enum LEX_SOURCE_INFO:: { ... } | m_source_connection_auto_failover |
enum LEX_SOURCE_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 REPLICATION SOURCE 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_SOURCE_INFO:: { ... } | require_table_primary_key_check |
Identifies what is the slave policy on primary keys in tables. More... | |
enum LEX_SOURCE_INFO:: { ... } | assign_gtids_to_anonymous_transactions_type |
const char * | assign_gtids_to_anonymous_transactions_manual_uuid {nullptr} |
Private Member Functions | |
LEX_SOURCE_INFO (const LEX_SOURCE_INFO &) | |
LEX_SOURCE_INFO & | operator= (const LEX_SOURCE_INFO &) |
Structure to hold parameters for CHANGE REPLICATION SOURCE, START REPLICA, and STOP REPLICA.
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_SOURCE_INFO::initialize | ( | ) |
Initializes everything to zero/NULL/empty.
|
private |
void LEX_SOURCE_INFO::set_unspecified | ( | ) |
Sets all fields to their "unspecified" value.
const char* LEX_SOURCE_INFO::assign_gtids_to_anonymous_transactions_manual_uuid {nullptr} |
enum { ... } LEX_SOURCE_INFO::assign_gtids_to_anonymous_transactions_type |
enum { ... } LEX_SOURCE_INFO::auto_position |
char * LEX_SOURCE_INFO::bind_addr |
const char* LEX_SOURCE_INFO::channel |
char* LEX_SOURCE_INFO::compression_algorithm |
uint LEX_SOURCE_INFO::connect_retry |
bool LEX_SOURCE_INFO::for_channel |
enum { ... } LEX_SOURCE_INFO::get_public_key |
char* LEX_SOURCE_INFO::gtid |
enum { ... } LEX_SOURCE_INFO::gtid_until_condition |
enum { ... } LEX_SOURCE_INFO::heartbeat_opt |
float LEX_SOURCE_INFO::heartbeat_period |
char* LEX_SOURCE_INFO::host |
char * LEX_SOURCE_INFO::log_file_name |
enum { ... } LEX_SOURCE_INFO::m_gtid_only |
enum { ... } LEX_SOURCE_INFO::m_source_connection_auto_failover |
char * LEX_SOURCE_INFO::network_namespace |
char * LEX_SOURCE_INFO::password |
uint LEX_SOURCE_INFO::port |
enum { ... } LEX_SOURCE_INFO::port_opt |
ulonglong LEX_SOURCE_INFO::pos |
const char * LEX_SOURCE_INFO::privilege_checks_hostname |
bool LEX_SOURCE_INFO::privilege_checks_none |
Flag that is set to true
whenever PRIVILEGE_CHECKS_USER
is set to NULL
as a part of a CHANGE REPLICATION SOURCE TO
statement.
const char* LEX_SOURCE_INFO::privilege_checks_username |
Username and hostname parts of the PRIVILEGE_CHECKS_USER
, when it's set to a user.
char* LEX_SOURCE_INFO::public_key_path |
char* LEX_SOURCE_INFO::relay_log_name |
ulong LEX_SOURCE_INFO::relay_log_pos |
Prealloced_array<ulong, 2> LEX_SOURCE_INFO::repl_ignore_server_ids |
enum { ... } LEX_SOURCE_INFO::repl_ignore_server_ids_opt |
bool LEX_SOURCE_INFO::replica_until |
int LEX_SOURCE_INFO::require_row_format |
Flag indicating if row format should be enforced for this channel event stream.
enum { ... } LEX_SOURCE_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_SOURCE_INFO::retry_count |
enum { ... } LEX_SOURCE_INFO::retry_count_opt |
ulong LEX_SOURCE_INFO::server_id |
int LEX_SOURCE_INFO::sql_delay |
enum { ... } LEX_SOURCE_INFO::ssl |
char * LEX_SOURCE_INFO::ssl_ca |
char * LEX_SOURCE_INFO::ssl_capath |
char * LEX_SOURCE_INFO::ssl_cert |
char * LEX_SOURCE_INFO::ssl_cipher |
char* LEX_SOURCE_INFO::ssl_crl |
char * LEX_SOURCE_INFO::ssl_crlpath |
char* LEX_SOURCE_INFO::ssl_key |
enum { ... } LEX_SOURCE_INFO::ssl_verify_server_cert |
enum enum_tls_ciphersuites LEX_SOURCE_INFO::tls_ciphersuites |
char* LEX_SOURCE_INFO::tls_ciphersuites_string |
char * LEX_SOURCE_INFO::tls_version |
bool LEX_SOURCE_INFO::until_after_gaps |
char * LEX_SOURCE_INFO::user |
char* LEX_SOURCE_INFO::view_id |
uint LEX_SOURCE_INFO::zstd_compression_level |