diff options
author | unknown <knielsen@knielsen-hq.org> | 2013-10-11 11:21:18 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2013-10-11 11:21:18 +0200 |
commit | d61cffa6b1dd8b25dbae2536af1b0b59091b9f06 (patch) | |
tree | 6ff70b4846d8300d84340c9954879bcc552e8169 /sql/rpl_mi.h | |
parent | 032dc20541a7d082fb71720ab130b05668fabd79 (diff) | |
download | mariadb-git-d61cffa6b1dd8b25dbae2536af1b0b59091b9f06.tar.gz |
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.
Diffstat (limited to 'sql/rpl_mi.h')
-rw-r--r-- | sql/rpl_mi.h | 2 |
1 files changed, 2 insertions, 0 deletions
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, |