diff options
author | unknown <knielsen@knielsen-hq.org> | 2013-04-29 10:57:48 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2013-04-29 10:57:48 +0200 |
commit | 59830e1ab8d5e60442b5d15729c8ef06132fc827 (patch) | |
tree | d1c19e900025b234c90cb2a3d00e53e575b65e95 /sql/log_event.h | |
parent | ced65e21c60ca7342e8b11b888360b86bf83952d (diff) | |
download | mariadb-git-59830e1ab8d5e60442b5d15729c8ef06132fc827.tar.gz |
MDEV-4446: Incorrect handling of binlog checksum when searching for GTID start position in binlog
When the slave connects, the master skips binlog event groups
until it reaches the position requested by the slave. To
identify event groups, it needs to detect COMMIT events. But
this detection did not correctly handle binlog checksums, so
could incorrectly skip extra groups due to not detecting the
end of an event group.
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index 1c2b2769915..5026b280b27 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -1946,7 +1946,7 @@ public: /* !!! Public in this patch to allow old usage */ const char *query_arg, uint32 q_len_arg); static bool peek_is_commit_rollback(const char *event_start, - size_t event_len); + size_t event_len, uint8 checksum_alg); #endif /* HAVE_REPLICATION */ /* If true, the event always be applied by slave SQL thread or be printed by @@ -3084,6 +3084,7 @@ public: static int make_compatible_event(String *packet, bool *need_dummy_event, ulong ev_offset, uint8 checksum_alg); static bool peek(const char *event_start, size_t event_len, + uint8 checksum_alg, uint32 *domain_id, uint32 *server_id, uint64 *seq_no, uchar *flags2); #endif |