From d61cffa6b1dd8b25dbae2536af1b0b59091b9f06 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 11 Oct 2013 11:21:18 +0200 Subject: MDEV-5130: More precise binlog position reporting for IO thread when reconnecting with GTID Make IO thread check for end of event group, so that upon disconnect at the end of an event group it can report the last read GTID as expected. Also inject a fake Rotate event at reconnect when skipping part of an initial event group, to give SQL thread the correct Read_Master_Log_Pos. Reported by Pavel Ivanov. --- sql/rpl_mi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/rpl_mi.h') diff --git a/sql/rpl_mi.h b/sql/rpl_mi.h index fe9005df3ef..1c34a57b1e3 100644 --- a/sql/rpl_mi.h +++ b/sql/rpl_mi.h @@ -161,6 +161,8 @@ class Master_info : public Slave_reporting_capability events_queued_since_last_gtid is non-zero. */ rpl_gtid last_queued_gtid; + /* Whether last_queued_gtid had the FL_STANDALONE flag set. */ + bool last_queued_gtid_standalone; /* When slave IO thread needs to reconnect, gtid_reconnect_event_skip_count counts number of events to skip from the first GTID-prefixed event group, -- cgit v1.2.1