My Project
Public Attributes
Binlog_relay_IO_observer Struct Reference

#include <replication.h>

List of all members.

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)

Detailed Description

Observes and extends the service of slave IO thread.


Member Data Documentation

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

Parameters:
paramObserver common parameter
event_bufEvent packet written to relay log
event_lenLength of the event packet written to relay log
flagsflags for relay log
Return values:
0Sucess
1Failure
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

Parameters:
paramObserver common parameter
packetThe event packet read from master
lenLength of the event packet read from master
event_bufThe event packet return after process
event_lenThe length of event packet return after process
Return values:
0Sucess
1Failure

This callback is called after reset slave relay log IO status

Parameters:
paramObserver common parameter
Return values:
0Sucess
1Failure

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.

Parameters:
paramObserver common parameter
flagsbinlog dump flags
Return values:
0Sucess
1Failure

This callback is called when slave IO thread starts

Parameters:
paramObserver common parameter
Return values:
0Sucess
1Failure

This callback is called when slave IO thread stops

Parameters:
paramObserver common parameter
Return values:
0Sucess
1Failure

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines