1 #ifndef RPL_MASTER_H_INCLUDED
18 #define RPL_MASTER_H_INCLUDED
21 #ifdef HAVE_REPLICATION
23 extern bool server_id_supplied;
24 extern int max_binlog_dump_events;
25 extern my_bool opt_sporadic_binlog_dump_fail;
26 extern my_bool opt_show_slave_auth_info;
28 typedef struct st_slave_info
31 uint32 rpl_recovery_rank, master_id;
32 char host[HOSTNAME_LENGTH+1];
33 char user[USERNAME_LENGTH+1];
34 char password[MAX_PASSWORD_LENGTH+1];
39 void init_slave_list();
40 void end_slave_list();
41 int register_slave(THD* thd, uchar* packet, uint packet_length);
42 void unregister_slave(THD* thd,
bool only_mine,
bool need_lock_slave_list);
43 bool show_slave_hosts(THD* thd);
45 bool show_master_status(THD* thd);
46 bool show_binlogs(THD* thd);
47 void kill_zombie_dump_threads(
String *slave_uuid);
60 bool com_binlog_dump_gtid(THD *thd,
char *packet, uint packet_length);
73 bool com_binlog_dump(THD *thd,
char *packet, uint packet_length);
98 void mysql_binlog_send(THD* thd,
char* log_ident, my_off_t pos,
101 int reset_master(THD* thd);