MySQL 8.0.39
Source Code Documentation
Until_gtids Class Reference

It is an abstract class for UNTIL SQL_BEFORE_GTIDS and SQL_AFTER_GTIDS. More...

#include <rpl_replica_until_options.h>

Inheritance diagram for Until_gtids:
[legend]

Public Member Functions

 ~Until_gtids () override=default
 
int init (const char *gtid_set_str)
 Initialize the until gtids when starting the slave. More...
 
- Public Member Functions inherited from Until_option
virtual ~Until_option ()=default
 
bool is_satisfied_at_start_slave ()
 Check if the until option is already satisfied at coordinator starting. More...
 
bool is_satisfied_before_dispatching_event (const Log_event *ev)
 check if the until option is satisfied before applying or dispatching a event. More...
 
bool is_satisfied_after_dispatching_event ()
 check if the until option is satisfied after applied or dispatched a event. More...
 

Protected Member Functions

 Until_gtids (Relay_log_info *rli)
 
- Protected Member Functions inherited from Until_option
 Until_option (Relay_log_info *rli)
 

Protected Attributes

Gtid_set m_gtids
 Stores the gtids of START SLAVE UNTIL SQL_*_GTIDS. More...
 
- Protected Attributes inherited from Until_option
Relay_log_infom_rli
 

Detailed Description

It is an abstract class for UNTIL SQL_BEFORE_GTIDS and SQL_AFTER_GTIDS.

It encapsulates the variables and functions shared between the two options.

Constructor & Destructor Documentation

◆ ~Until_gtids()

Until_gtids::~Until_gtids ( )
overridedefault

◆ Until_gtids()

Until_gtids::Until_gtids ( Relay_log_info rli)
inlineprotected

Member Function Documentation

◆ init()

int Until_gtids::init ( const char *  gtid_set_str)

Initialize the until gtids when starting the slave.

Parameters
[in]gtid_set_strthe gtid set in START SLAVE UNTIL option.
Returns
int
Return values
0if succeeds.
adefined mysql error number if error happens.

Member Data Documentation

◆ m_gtids

Gtid_set Until_gtids::m_gtids
protected

Stores the gtids of START SLAVE UNTIL SQL_*_GTIDS.

Each time a gtid is about to be processed, we check if it is in the set. Depending on until_condition, SQL thread is stopped before or after applying the gtid.


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