MySQL 8.0.39
Source Code Documentation
|
It is an abstract class for UNTIL SQL_BEFORE_GTIDS and SQL_AFTER_GTIDS. More...
#include <rpl_replica_until_options.h>
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_info * | m_rli |
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.
|
overridedefault |
|
inlineprotected |
int Until_gtids::init | ( | const char * | gtid_set_str | ) |
Initialize the until gtids when starting the slave.
[in] | gtid_set_str | the gtid set in START SLAVE UNTIL option. |
0 | if succeeds. |
a | defined mysql error number if error happens. |
|
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.