MySQL 8.0.39
Source Code Documentation
Until_view_id Class Reference

It implements the logic for UNTIL VIEW_ID. More...

#include <rpl_replica_until_options.h>

Inheritance diagram for Until_view_id:
[legend]

Public Member Functions

 Until_view_id (Relay_log_info *rli)
 
int init (const char *view_id)
 Initialize the view_id 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...
 

Private Member Functions

bool check_at_start_slave () override
 
bool check_before_dispatching_event (const Log_event *ev) override
 
bool check_after_dispatching_event () override
 

Private Attributes

std::string m_view_id
 
bool until_view_id_found
 
bool until_view_id_commit_found
 

Additional Inherited Members

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

Detailed Description

It implements the logic for UNTIL VIEW_ID.

Constructor & Destructor Documentation

◆ Until_view_id()

Until_view_id::Until_view_id ( Relay_log_info rli)
inline

Member Function Documentation

◆ check_after_dispatching_event()

bool Until_view_id::check_after_dispatching_event ( )
overrideprivatevirtual

Implements Until_option.

◆ check_at_start_slave()

bool Until_view_id::check_at_start_slave ( )
overrideprivatevirtual

Implements Until_option.

◆ check_before_dispatching_event()

bool Until_view_id::check_before_dispatching_event ( const Log_event ev)
overrideprivatevirtual

Implements Until_option.

◆ init()

int Until_view_id::init ( const char *  view_id)

Initialize the view_id when starting the slave.

Parameters
[in]view_idthe view_id in START SLAVE UNTIO option.
Returns
int
Return values
0if succeeds.
adefined mysql error number if error happens.

Member Data Documentation

◆ m_view_id

std::string Until_view_id::m_view_id
private

◆ until_view_id_commit_found

bool Until_view_id::until_view_id_commit_found
private

◆ until_view_id_found

bool Until_view_id::until_view_id_found
private

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