MySQL 8.0.40
Source Code Documentation
RLI_current_event_raii Class Reference

RAII class to control the slave applier execution context binding with a being handled event. More...

#include <rpl_rli.h>

Public Member Functions

 RLI_current_event_raii (Relay_log_info *rli_arg, Log_event *ev)
 
void set_current_event (Log_event *ev)
 
 ~RLI_current_event_raii ()
 

Private Attributes

Relay_log_infom_rli
 

Detailed Description

RAII class to control the slave applier execution context binding with a being handled event.

The main object of control is Query-log-event containing DDL statement. The member RLI::current_event is set to refer to an event once it is read, e.g by next_event() and is reset to NULL at exiting a read-exec loop. Once the event is destroyed RLI::current_event must be reset or guaranteed not be accessed anymore. In the MTS execution the worker is reliably associated with an event only with the latter is not deferred. This includes Query-log-event.

Constructor & Destructor Documentation

◆ RLI_current_event_raii()

RLI_current_event_raii::RLI_current_event_raii ( Relay_log_info rli_arg,
Log_event ev 
)
inline

◆ ~RLI_current_event_raii()

RLI_current_event_raii::~RLI_current_event_raii ( )
inline

Member Function Documentation

◆ set_current_event()

void RLI_current_event_raii::set_current_event ( Log_event ev)
inline

Member Data Documentation

◆ m_rli

Relay_log_info* RLI_current_event_raii::m_rli
private

The documentation for this class was generated from the following file: