YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense alongwiththisprogram;ifnot,writetotheFreeSoftware
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
/* A slave reads the semi-sync packet header and separate the metadata *fromthepayloaddata. * *Input: *header-(IN)packetheaderpointer *total_len-(IN)totalpacketlength:metadata+payload *semi_flags-(IN)storeflags:SEMI_SYNC_SLAVE_DELAY_SYNCand SEMI_SYNC_NEED_ACK *payload-(IN)payload:thereplicationevent *payload_len-(IN)payloadlength * *Return: *0:success;non-zero:error
*/ int slave_read_sync_header(const uchar *header, unsignedlong total_len, int *semi_flags, const uchar **payload, unsignedlong *payload_len);
/* A slave replies to the master indicating its replication process. It *indicatesthattheslavehasreceivedalleventsbeforethespecified *binlogposition.
*/ int slave_reply(Master_info* mi); void slave_start(Master_info *mi); void slave_stop(Master_info *mi); void slave_reconnect(Master_info *mi); int request_transmit(Master_info *mi); void kill_connection(Master_info *mi);
private: /* True when init_object has been called */ bool m_init_done; bool m_slave_enabled; /* semi-sync is enabled on the slave */ bool m_delay_master; unsignedint m_kill_conn_timeout;
};
/* System and status variables for the slave component */ extern my_bool global_rpl_semi_sync_slave_enabled; extern ulong rpl_semi_sync_slave_trace_level; extern Repl_semi_sync_slave repl_semisync_slave;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.