mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
bb9da6021c
include/mysqld_error.h: new error message mysql-test/r/rpl_log.result: updated results mysql-test/t/rpl_log.test: test show new master for slave sql/lex.h: show new master for slave sql/share/czech/errmsg.txt: new error sql/share/danish/errmsg.txt: new error sql/share/dutch/errmsg.txt: new error sql/share/english/errmsg.txt: new error sql/share/estonian/errmsg.txt: new error sql/share/french/errmsg.txt: new error sql/share/german/errmsg.txt: new error sql/share/greek/errmsg.txt: new error sql/share/hungarian/errmsg.txt: new error sql/share/italian/errmsg.txt: new error sql/share/japanese/errmsg.txt: new error sql/share/korean/errmsg.txt: new error sql/share/norwegian-ny/errmsg.txt: new error sql/share/norwegian/errmsg.txt: new error sql/share/polish/errmsg.txt: new error sql/share/portuguese/errmsg.txt: new error sql/share/romanian/errmsg.txt: new error sql/share/russian/errmsg.txt: new error sql/share/slovak/errmsg.txt: new error sql/share/spanish/errmsg.txt: new error sql/share/swedish/errmsg.txt: new error sql/sql_lex.h: show new master for slave sql/sql_parse.cc: show new master for slave sql/sql_repl.cc: show new master for slave sql/sql_repl.h: show new master for slave sql/sql_yacc.yy: show new master for slave
54 lines
1.6 KiB
C
54 lines
1.6 KiB
C
#ifndef SQL_REPL_H
|
|
#define SQL_REPL_H
|
|
|
|
#include "slave.h"
|
|
|
|
typedef struct st_slave_info
|
|
{
|
|
uint32 server_id;
|
|
char host[HOSTNAME_LENGTH+1];
|
|
char user[USERNAME_LENGTH+1];
|
|
char password[HASH_PASSWORD_LENGTH+1];
|
|
uint16 port;
|
|
} SLAVE_INFO;
|
|
|
|
extern bool opt_show_slave_auth_info;
|
|
extern HASH slave_list;
|
|
extern char* master_host;
|
|
extern my_string opt_bin_logname, master_info_file;
|
|
extern uint32 server_id;
|
|
extern bool server_id_supplied;
|
|
extern I_List<i_string> binlog_do_db, binlog_ignore_db;
|
|
|
|
#ifndef DBUG_OFF
|
|
extern int max_binlog_dump_events;
|
|
extern bool opt_sporadic_binlog_dump_fail;
|
|
#endif
|
|
|
|
File open_binlog(IO_CACHE *log, const char *log_file_name,
|
|
const char **errmsg);
|
|
|
|
int start_slave(THD* thd = 0, bool net_report = 1);
|
|
int stop_slave(THD* thd = 0, bool net_report = 1);
|
|
int load_master_data(THD* thd);
|
|
int connect_to_master(THD *thd, MYSQL* mysql, MASTER_INFO* mi);
|
|
int change_master(THD* thd);
|
|
int show_new_master(THD* thd);
|
|
int show_slave_hosts(THD* thd);
|
|
int show_binlog_events(THD* thd);
|
|
int translate_master(THD* thd, LEX_MASTER_INFO* mi, char* errmsg);
|
|
int cmp_master_pos(const char* log_file_name1, ulonglong log_pos1,
|
|
const char* log_file_name2, ulonglong log_pos2);
|
|
void reset_slave();
|
|
void reset_master();
|
|
void init_slave_list();
|
|
void end_slave_list();
|
|
int register_slave(THD* thd, uchar* packet, uint packet_length);
|
|
int purge_master_logs(THD* thd, const char* to_log);
|
|
bool log_in_use(const char* log_name);
|
|
void adjust_linfo_offsets(my_off_t purge_offset);
|
|
int show_binlogs(THD* thd);
|
|
extern int init_master_info(MASTER_INFO* mi);
|
|
void kill_zombie_dump_threads(uint32 slave_server_id);
|
|
|
|
#endif
|