MySQL 8.0.39
Source Code Documentation
|
Class representing an incident, an occurrence out of the ordinary, that happened on the master. More...
#include <control_events.h>
Public Member Functions | |
enum_incident | get_incident_type () |
char * | get_message () |
Incident_event (enum_incident incident_arg) | |
This will create an Incident_event with an empty message and set the type_code as INCIDENT_EVENT in the header object in Binary_log_event. More... | |
Incident_event (const char *buf, const Format_description_event *fde) | |
Constructor of Incident_event The buffer layout is as follows: More... | |
Public Member Functions inherited from binary_log::Binary_log_event | |
virtual | ~Binary_log_event ()=0 |
Binary_log_event (const Binary_log_event &)=default | |
Binary_log_event (Binary_log_event &&)=default | |
Binary_log_event & | operator= (const Binary_log_event &)=default |
Binary_log_event & | operator= (Binary_log_event &&)=default |
enum Log_event_type | get_event_type () const |
Helper method. More... | |
const Log_event_header * | header () const |
Return a const pointer to the header of the log event. More... | |
Log_event_header * | header () |
Return a non-const pointer to the header of the log event. More... | |
const Log_event_footer * | footer () const |
Return a const pointer to the footer of the log event. More... | |
Log_event_footer * | footer () |
Return a non-const pointer to the footer of the log event. More... | |
Event_reader & | reader () |
Returns a reference to the event Event_reader object. More... | |
Protected Attributes | |
enum_incident | incident |
char * | message |
size_t | message_length |
Additional Inherited Members | |
Static Public Attributes inherited from binary_log::Binary_log_event | |
static const int | LOG_EVENT_TYPES = (ENUM_END_EVENT - 1) |
Protected Member Functions inherited from binary_log::Binary_log_event | |
Binary_log_event (Log_event_type type_code) | |
This constructor is used to initialize the type_code of header object m_header. More... | |
Binary_log_event (const char **buf, const Format_description_event *fde) | |
This constructor will create a new object of Log_event_header and initialize the variable m_header, which in turn will be used to initialize Log_event's member common_header. More... | |
Class representing an incident, an occurrence out of the ordinary, that happened on the master.
The event is used to inform the slave that something out of the ordinary happened on the master that might cause the database to be in an inconsistent state.
Symbol | Format | Description |
---|---|---|
INCIDENT | 2 | Incident number as an unsigned integer |
MSGLEN | 1 | Message length as an unsigned integer |
MESSAGE | MSGLEN | The message, if present. Not null terminated. |
|
inlineexplicit |
This will create an Incident_event with an empty message and set the type_code as INCIDENT_EVENT in the header object in Binary_log_event.
binary_log::Incident_event::Incident_event | ( | const char * | buf, |
const Format_description_event * | fde | ||
) |
Constructor of Incident_event The buffer layout is as follows:
+-----------------------------------------------------+ | Incident_number | message_length | Incident_message | +-----------------------------------------------------+
Incident number codes are listed in binlog_evnet.h. The only code currently used is INCIDENT_LOST_EVENTS, which indicates that there may be lost events (a "gap") in the replication stream that requires databases to be resynchronized.
buf | Contains the serialized event. |
fde | An FDE event (see Rotate_event constructor for more info). |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |