1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Added slave log event to record the master position in of slave thread

in slave binlog - needed for synchronization slave during recovery
This commit is contained in:
sasha@mysql.sashanet.com
2001-06-14 14:12:40 -06:00
parent 0054d8dd85
commit 7ce33f90fb
5 changed files with 217 additions and 2 deletions

View File

@ -23,6 +23,7 @@
class Query_log_event;
class Load_log_event;
class Slave_log_event;
enum enum_enable_or_disable { LEAVE_AS_IS, ENABLE, DISABLE };
enum enum_ha_read_modes { RFIRST, RNEXT, RPREV, RLAST, RKEY };
@ -83,6 +84,7 @@ public:
time_t query_start=0);
bool write(Query_log_event* event_info); // binary log write
bool write(Load_log_event* event_info);
bool write(Slave_log_event* event_info);
bool write(IO_CACHE *cache);
int generate_new_name(char *new_name,const char *old_name);
void make_log_name(char* buf, const char* log_ident);