24#ifndef RPL_ASYNC_CONN_FAILOVER_H
25#define RPL_ASYNC_CONN_FAILOVER_H
133 error =
"Unknown MySQL error";
Definition: rpl_async_conn_failover.h:35
Async_conn_failover_manager(Async_conn_failover_manager &&)=delete
static DoAutoConnFailoverError do_auto_conn_failover(Master_info *mi, bool force_highest_weight)
Re-establishes connection to next available source.
Definition: rpl_async_conn_failover.cc:55
static void log_error_for_async_executing_query_failure(const longlong sql_errno, MYSQL *mysql, Master_info *mi)
Logs error for failure while executing queries.
Definition: rpl_async_conn_failover.h:128
Async_conn_failover_manager()=delete
static bool set_channel_conn_details(Master_info *mi, const std::string host, const uint port, const std::string network_namespace)
Sets source network configuration details <host, port, network_namespace> for the provided Master_inf...
Definition: rpl_async_conn_failover.cc:203
static SourceQuorumStatus get_source_quorum_status(MYSQL *mysql, Master_info *mi)
Definition: rpl_async_conn_failover.cc:273
DoAutoConnFailoverError
Definition: rpl_async_conn_failover.h:37
Async_conn_failover_manager(const Async_conn_failover_manager &)=delete
Async_conn_failover_manager & operator=(Async_conn_failover_manager &&)=delete
Async_conn_failover_manager & operator=(const Async_conn_failover_manager &)=delete
SourceQuorumStatus
Definition: rpl_async_conn_failover.h:48
@ transient_network_error
char host[HOSTNAME_LENGTH+1]
Host name or ip address stored in the master.info.
Definition: rpl_mi.h:99
uint port
Definition: rpl_mi.h:305
char * get_channel() const
Definition: rpl_info.h:125
#define LogErr(severity, ecode,...)
Definition: log_builtins.h:856
long long int longlong
Definition: my_inttypes.h:55
@ WARNING_LEVEL
Definition: my_loglevel.h:44
This file defines the client API to MySQL and also the ABI of the dynamically linked libmysqlclient.
const char *STDCALL mysql_error(MYSQL *mysql)
Definition: client.cc:9198
const char * host
Definition: mysqladmin.cc:65
Definition: instrumented_condition_variable.h:32
required string network_namespace
Definition: replication_asynchronous_connection_failover.proto:34
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:33