18 #ifndef SEMISYNC_SLAVE_H
19 #define SEMISYNC_SLAVE_H
30 :slave_enabled_(
false)
34 void setTraceLevel(
unsigned long trace_level) {
35 trace_level_ = trace_level;
43 bool getSlaveEnabled() {
44 return slave_enabled_;
46 void setSlaveEnabled(
bool enabled) {
47 slave_enabled_ = enabled;
63 int slaveReadSyncHeader(
const char *header,
unsigned long total_len,
bool *need_reply,
64 const char **payload,
unsigned long *payload_len);
78 int slaveReply(
MYSQL *mysql,
const char *binlog_filename,
79 my_off_t binlog_filepos);
93 extern char rpl_semi_sync_slave_enabled;
94 extern unsigned long rpl_semi_sync_slave_trace_level;
95 extern char rpl_semi_sync_slave_status;