MySQL 8.0.39
Source Code Documentation
Until_master_position Class Reference

It is for UNTIL master_log_file and master_log_pos. More...

#include <rpl_replica_until_options.h>

Inheritance diagram for Until_master_position:
[legend]

Public Member Functions

 Until_master_position (Relay_log_info *rli)
 
- Public Member Functions inherited from Until_position
 ~Until_position () override=default
 
int init (const char *log_name, my_off_t log_pos)
 Initialize the until position when starting the slave. More...
 
void notify_log_name_change ()
 Coordinator calls this function to notify that master log switch or relay log switch. More...
 
const char * get_until_log_name ()
 
my_off_t get_until_log_pos ()
 
- 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

char m_current_log_name [FN_REFLEN]
 
my_off_t m_current_log_pos
 

Additional Inherited Members

- Protected Types inherited from Until_position
enum  { LOG_NAMES_CMP_UNKNOWN = -2 , LOG_NAMES_CMP_LESS = -1 , LOG_NAMES_CMP_EQUAL = 0 , LOG_NAMES_CMP_GREATER = 1 }
 Log name is compared only once for each master log or relay log. More...
 
- Protected Member Functions inherited from Until_position
 Until_position (Relay_log_info *rli)
 
bool check_position (const char *log_name, my_off_t log_pos)
 Check if until position is satisfied. More...
 
- Protected Member Functions inherited from Until_option
 Until_option (Relay_log_info *rli)
 
- Protected Attributes inherited from Until_position
enum Until_position:: { ... }  m_log_names_cmp_result
 Log name is compared only once for each master log or relay log. More...
 
- Protected Attributes inherited from Until_option
Relay_log_infom_rli
 

Detailed Description

It is for UNTIL master_log_file and master_log_pos.

Constructor & Destructor Documentation

◆ Until_master_position()

Until_master_position::Until_master_position ( Relay_log_info rli)
inline

Member Function Documentation

◆ check_after_dispatching_event()

bool Until_master_position::check_after_dispatching_event ( )
overrideprivatevirtual

Implements Until_option.

◆ check_at_start_slave()

bool Until_master_position::check_at_start_slave ( )
overrideprivatevirtual

Implements Until_option.

◆ check_before_dispatching_event()

bool Until_master_position::check_before_dispatching_event ( const Log_event ev)
overrideprivatevirtual

Implements Until_option.

Member Data Documentation

◆ m_current_log_name

char Until_master_position::m_current_log_name[FN_REFLEN]
private

◆ m_current_log_pos

my_off_t Until_master_position::m_current_log_pos
private

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