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:541
Definition: rpl_rli.h:203
This will be deprecated when we move to using sequence ids.
Definition: log_event.h:1972
It manages a stage and the related mutex and makes the process of locking and entering stage/unlock a...
Definition: rpl_applier_reader.cc:45
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
LOG_INFO m_linfo
Definition: rpl_applier_reader.h:103
bool wait_for_new_event()
Waits for new events coming.
Definition: rpl_applier_reader.cc:299
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:282
const char * m_errmsg
Stores the error message which is used internally.
Definition: rpl_applier_reader.h:91
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:271
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:326
Rpl_applier_reader(const Rpl_applier_reader &)=delete
Rpl_applier_reader(Relay_log_info *rli)
Definition: rpl_applier_reader.cc:86
void close()
Definition: rpl_applier_reader.cc:147
void debug_print_next_event_positions()
Definition: rpl_applier_reader.cc:488
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:95
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:526
Log_event * read_next_event()
Read next event from relay log.
Definition: rpl_applier_reader.cc:154
bool purge_applied_logs()
Purge relay log files prior to m_rli->group_relay_log_name.
Definition: rpl_applier_reader.cc:430
~Rpl_applier_reader()
Definition: rpl_applier_reader.cc:93
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:367
ulonglong my_off_t
Definition: my_inttypes.h:72
bool relay_log_purge
Definition: mysqld.cc:1257