1#ifndef RPL_SOURCE_H_INCLUDED
2#define RPL_SOURCE_H_INCLUDED
141 const std::string alt1,
142 const std::string alt2);
Represents a set of GTIDs.
Definition: rpl_gtid.h:1556
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:167
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Represents a "Resource" which can be either "used" by a number of threads, or "blocked" by a number o...
Definition: resource_blocker.h:70
Definition: item_func.h:3021
bool server_id_supplied
Definition: mysqld.cc:1205
static int flags[50]
Definition: hp_test1.cc:40
Common definition used by mysys, performance schema and server & client.
static constexpr int HOSTNAME_LENGTH
Definition: my_hostname.h:43
Some integer typedefs for easier portability.
ulonglong my_off_t
Definition: my_inttypes.h:72
unsigned char uchar
Definition: my_inttypes.h:52
uint16_t uint16
Definition: my_inttypes.h:65
uint32_t uint32
Definition: my_inttypes.h:67
uint32 my_thread_id
Definition: my_thread_local.h:34
Common definition between mysql server & client.
#define USERNAME_LENGTH
Definition: mysql_com.h:69
void mysql_binlog_send(THD *thd, char *log_ident, my_off_t pos, Gtid_set *gtid_set, uint32 flags)
Low-level function where the dump thread iterates over the binary log and sends events to the slave.
Definition: rpl_source.cc:1043
const user_var_entry * get_user_var_from_alternatives(const THD *thd, const std::string alt1, const std::string alt2)
Read a user variable that may exist under two different names.
Definition: rpl_source.cc:1050
resource_blocker::Resource & get_dump_thread_resource()
Definition: rpl_source.cc:87
bool com_binlog_dump(THD *thd, char *packet, size_t packet_length)
Process a COM_BINLOG_DUMP packet.
Definition: rpl_source.cc:921
int max_binlog_dump_events
Definition: rpl_source.cc:81
bool show_binlogs(THD *thd)
Execute a SHOW BINARY LOGS statement.
Definition: rpl_source.cc:1320
void unregister_replica(THD *thd, bool only_mine, bool need_lock_slave_list)
Definition: rpl_source.cc:206
void kill_zombie_dump_threads(THD *thd)
Definition: rpl_source.cc:1145
int register_replica(THD *thd, uchar *packet, size_t packet_length)
Register slave in 'slave_list' hash table.
Definition: rpl_source.cc:142
bool show_binary_log_status(THD *thd)
Execute a SHOW BINARY LOG STATUS statement.
Definition: rpl_source.cc:1259
bool com_binlog_dump_gtid(THD *thd, char *packet, size_t packet_length)
Process a COM_BINLOG_DUMP_GTID packet.
Definition: rpl_source.cc:973
bool opt_show_replica_auth_info
Definition: mysqld.cc:1249
String * get_replica_uuid(THD *thd, String *value)
An auxiliary function extracts slave UUID.
Definition: rpl_source.cc:1069
bool opt_sporadic_binlog_dump_fail
Definition: rpl_source.cc:82
bool show_replicas(THD *thd)
Execute a SHOW REPLICAS statement.
Definition: rpl_source.cc:231
bool reset_binary_logs_and_gtids(THD *thd, bool unlock_read_lock)
Execute a RESET BINARY LOGS AND GTIDS statement.
Definition: rpl_source.cc:1187
File containing constants that can be used throughout the server.
Definition: rpl_source.h:50
char host[HOSTNAME_LENGTH+1]
Definition: rpl_source.h:53
my_thread_id thd_id
Definition: rpl_source.h:57
uint16 port
Definition: rpl_source.h:56
mysql::gtid::Uuid replica_uuid
Definition: rpl_source.h:58
char user[USERNAME_LENGTH+1]
Definition: rpl_source.h:54
uint32 master_id
Definition: rpl_source.h:52
uint32 rpl_recovery_rank
Definition: rpl_source.h:52
char password[MAX_PASSWORD_LENGTH+1]
Definition: rpl_source.h:55
bool valid_replica_uuid
Definition: rpl_source.h:59
uint32 server_id
Definition: rpl_source.h:51
Uuid is a trivial and of standard layout The structure contains the following components.
Definition: uuid.h:64
#define MAX_PASSWORD_LENGTH
Definition: validate_password.cc:66