MySQL 8.0.39
Source Code Documentation
|
Sentry class to guard the transitions for Delegate::m_observe_transmission
flag within given contexts.
More...
Public Member Functions | |
Observe_transmission_guard (bool &flag, binary_log::Log_event_type event_type, const char *event_ptr, binary_log::enum_binlog_checksum_alg checksum_alg, binary_log::Log_event_type prev_event_type) | |
Constructor for the class. More... | |
~Observe_transmission_guard () | |
Destructor for the sentry class. More... | |
Private Attributes | |
bool | m_saved |
The value of the guarded flag upon this object creation. More... | |
bool & | m_to_set |
The flag variable to guard. More... | |
Sentry class to guard the transitions for Delegate::m_observe_transmission
flag within given contexts.
|
inline |
Constructor for the class.
It will change the value of the flag
parameter according with the event_type
and event_ptr
content. The flag
will be set to true
as follows:
XID_EVENT
XA_PREPARE_LOG_EVENT
.QUERY_EVENT
with query equal to "XA COMMIT" or "XA ABORT" or "COMMIT".QUERY_EVENT
after a GTID_EVENT
and the query is not "BEGIN" –the statement is a DDL, for instance.flag | The flag variable to guard |
event_type | The type of the event being processed |
event_ptr | The raw content of the event being processed |
checksum_alg | The checksum algorithm being used currently |
prev_event_type | The type of the event processed just before the current one |
|
inline |
Destructor for the sentry class.
It will instantiate the guarded flag with the value prior to the creation of this object.
|
private |
The value of the guarded flag upon this object creation.
|
private |
The flag variable to guard.