24#ifndef RPL_APPLIER_READER_INCLUDED
25#define RPL_APPLIER_READER_INCLUDED
71 bool open(
const char **errmsg);
This is the abstract base class for binary log events.
Definition: log_event.h:538
Definition: rpl_rli.h:206
This will be deprecated when we move to using sequence ids.
Definition: log_event.h:2038
It manages a stage and the related mutex and makes the process of locking and entering stage/unlock a...
Definition: rpl_applier_reader.cc:46
This class provides the feature to read events from relay log files.
Definition: rpl_applier_reader.h:50
bool m_relay_log_purge
Definition: rpl_applier_reader.h:104
Relay_log_info * m_rli
Definition: rpl_applier_reader.h:89
bool wait_for_new_event()
Waits for new events coming.
Definition: rpl_applier_reader.cc:310
Rotate_log_event * generate_rotate_event()
In the case receiver thread says master skipped some events, it will generate a Rotate_log_event for ...
Definition: rpl_applier_reader.cc:293
const char * m_errmsg
Stores the error message which is used internally.
Definition: rpl_applier_reader.h:91
Log_info m_linfo
Definition: rpl_applier_reader.h:103
Relaylog_file_reader m_relaylog_file_reader
Definition: rpl_applier_reader.h:88
bool m_reading_active_log
Definition: rpl_applier_reader.h:93
bool read_active_log_end_pos()
It reads the coordinates up to which the receiver thread has written and check whether there is any e...
Definition: rpl_applier_reader.cc:282
bool reopen_log_reader_if_needed()
It checks if the relaylog file reader should be reopened and then reopens the reader if receiver thre...
Definition: rpl_applier_reader.cc:342
Rpl_applier_reader(const Rpl_applier_reader &)=delete
Rpl_applier_reader(Relay_log_info *rli)
Definition: rpl_applier_reader.cc:87
void close()
Definition: rpl_applier_reader.cc:148
void debug_print_next_event_positions()
Definition: rpl_applier_reader.cc:504
bool open(const char **errmsg)
Open the first relay log file which will be read by applier and seek to correct position.
Definition: rpl_applier_reader.cc:96
Rpl_applier_reader & operator=(const Rpl_applier_reader &)=delete
my_off_t m_log_end_pos
Stores active log's end position.
Definition: rpl_applier_reader.h:98
void reset_seconds_behind_master()
Definition: rpl_applier_reader.cc:542
Log_event * read_next_event()
Read next event from relay log.
Definition: rpl_applier_reader.cc:155
bool purge_applied_logs()
Purge relay log files prior to m_rli->group_relay_log_name.
Definition: rpl_applier_reader.cc:446
~Rpl_applier_reader()
Definition: rpl_applier_reader.cc:94
bool move_to_next_log(bool force_purge)
When reaching the end of current relay log file, close it and open next relay log.
Definition: rpl_applier_reader.cc:383
ulonglong my_off_t
Definition: my_inttypes.h:72
bool relay_log_purge
Definition: mysqld.cc:1276
Definition: binlog_index.h:86