1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-34705: Binlog in Engine

Initial code to read in the binlog dump thread events from InnoDB binlog.

Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
This commit is contained in:
Kristian Nielsen
2024-08-07 16:12:15 +02:00
parent 219f643ba0
commit 75c334a9f8
8 changed files with 181 additions and 19 deletions

View File

@@ -5832,11 +5832,14 @@ public:
uchar buf[32768];
handler_binlog_reader()
: cur_file_no(~(uint64_t)0), cur_file_offset(0), cur_file(0),
: cur_file_no(~(uint64_t)0), cur_file_offset(0), cur_file((File)-1),
buf_data_pos(0), buf_data_remain(0)
{ }
virtual ~handler_binlog_reader() { };
virtual int read_binlog_data(uchar *buf, uint32_t len) = 0;
int read_log_event(String *packet, uint32_t ev_offset, size_t max_allowed);
/*
cur_file_no -> implicitly gives file/tablespace
cur_file_offset -> implicitly gives page
@@ -5844,7 +5847,6 @@ public:
cur_chunk_len
cur_chunk_sofar
*/
virtual ~handler_binlog_reader() { };
};
#endif /* HANDLER_INCLUDED */