MySQL 8.4.2
Source Code Documentation
|
The extension class for the slave of semi-synchronous replication. More...
#include <semisync_replica.h>
Public Member Functions | |
ReplSemiSyncSlave () | |
~ReplSemiSyncSlave ()=default | |
void | setTraceLevel (unsigned long trace_level) |
int | initObject () |
bool | getSlaveEnabled () |
void | setSlaveEnabled (bool enabled) |
int | slaveReadSyncHeader (const char *header, unsigned long total_len, bool *need_reply, const char **payload, unsigned long *payload_len) |
int | slaveReply (MYSQL *mysql, const char *binlog_filename, my_off_t binlog_filepos) |
int | slaveStart (Binlog_relay_IO_param *param) |
int | slaveStop (Binlog_relay_IO_param *param) |
Public Member Functions inherited from Trace | |
void | function_enter (const char *func_name) |
int | function_exit (const char *func_name, int exit_code) |
bool | function_exit (const char *func_name, bool exit_code) |
void | function_exit (const char *func_name) |
Trace () | |
Trace (unsigned long trace_level) | |
Private Attributes | |
bool | init_done_ = false |
bool | slave_enabled_ = false |
MYSQL * | mysql_reply = nullptr |
Additional Inherited Members | |
Public Attributes inherited from Trace | |
unsigned long | trace_level_ |
Static Public Attributes inherited from ReplSemiSyncBase | |
static const unsigned char | kSyncHeader [2] |
static const unsigned char | kPacketMagicNum = 0xef |
static const unsigned char | kPacketFlagSync = 0x01 |
Static Public Attributes inherited from Trace | |
static const unsigned long | kTraceFunction = 0x0040 |
static const unsigned long | kTraceGeneral = 0x0001 |
static const unsigned long | kTraceDetail = 0x0010 |
static const unsigned long | kTraceNetWait = 0x0020 |
The extension class for the slave of semi-synchronous replication.
|
inline |
|
default |
|
inline |
int ReplSemiSyncSlave::initObject | ( | ) |
|
inline |
|
inline |
int ReplSemiSyncSlave::slaveReadSyncHeader | ( | const char * | header, |
unsigned long | total_len, | ||
bool * | need_reply, | ||
const char ** | payload, | ||
unsigned long * | payload_len | ||
) |
int ReplSemiSyncSlave::slaveReply | ( | MYSQL * | mysql, |
const char * | binlog_filename, | ||
my_off_t | binlog_filepos | ||
) |
int ReplSemiSyncSlave::slaveStart | ( | Binlog_relay_IO_param * | param | ) |
int ReplSemiSyncSlave::slaveStop | ( | Binlog_relay_IO_param * | param | ) |
|
private |
|
private |