My Project
|
#include <replication.h>
Public Attributes | |
uint32 | len |
int(* | thread_start )(Binlog_relay_IO_param *param) |
int(* | thread_stop )(Binlog_relay_IO_param *param) |
int(* | before_request_transmit )(Binlog_relay_IO_param *param, uint32 flags) |
int(* | after_read_event )(Binlog_relay_IO_param *param, const char *packet, unsigned long len, const char **event_buf, unsigned long *event_len) |
int(* | after_queue_event )(Binlog_relay_IO_param *param, const char *event_buf, unsigned long event_len, uint32 flags) |
int(* | after_reset_slave )(Binlog_relay_IO_param *param) |
Observes and extends the service of slave IO thread.
int(* Binlog_relay_IO_observer::after_queue_event)(Binlog_relay_IO_param *param, const char *event_buf, unsigned long event_len, uint32 flags) |
This callback is called after written an event packet to relay log
param | Observer common parameter |
event_buf | Event packet written to relay log |
event_len | Length of the event packet written to relay log |
flags | flags for relay log |
0 | Sucess |
1 | Failure |
int(* Binlog_relay_IO_observer::after_read_event)(Binlog_relay_IO_param *param, const char *packet, unsigned long len, const char **event_buf, unsigned long *event_len) |
This callback is called after read an event packet from master
param | Observer common parameter |
packet | The event packet read from master |
len | Length of the event packet read from master |
event_buf | The event packet return after process |
event_len | The length of event packet return after process |
0 | Sucess |
1 | Failure |
int(* Binlog_relay_IO_observer::after_reset_slave)(Binlog_relay_IO_param *param) |
This callback is called after reset slave relay log IO status
param | Observer common parameter |
0 | Sucess |
1 | Failure |
int(* Binlog_relay_IO_observer::before_request_transmit)(Binlog_relay_IO_param *param, uint32 flags) |
This callback is called before slave requesting binlog transmission from master
This is called before slave issuing BINLOG_DUMP command to master to request binlog.
param | Observer common parameter |
flags | binlog dump flags |
0 | Sucess |
1 | Failure |
int(* Binlog_relay_IO_observer::thread_start)(Binlog_relay_IO_param *param) |
This callback is called when slave IO thread starts
param | Observer common parameter |
0 | Sucess |
1 | Failure |
int(* Binlog_relay_IO_observer::thread_stop)(Binlog_relay_IO_param *param) |
This callback is called when slave IO thread stops
param | Observer common parameter |
0 | Sucess |
1 | Failure |