1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

Fixed ROTATE_EVENT

If timestamp is zero and flag LOG_EVEBNT_ARTIFICIAL_F was set the
event is a fake ROTATE_EVENT (https://mariadb.com/kb/en/fake-rotate_event/)
and needs different handling:
- a checksum might follow if @@binlog_checksum was set (CRC32)
- length calculation is different
This commit is contained in:
Georg Richter
2022-06-22 16:25:37 +02:00
parent 3230e75646
commit abddf0b0af
2 changed files with 32 additions and 1 deletions

View File

@@ -155,6 +155,7 @@ typedef struct st_mariadb_rpl {
uint32_t flags;
uint8_t fd_header_len; /* header len from last format description event */
uint8_t use_checksum;
uint8_t artificial_checksun;
} MARIADB_RPL;
/* Event header */