diff options
author | unknown <knielsen@knielsen-hq.org> | 2013-02-19 11:45:29 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2013-02-19 11:45:29 +0100 |
commit | bfec9c64b8a6e25c1c0da3e219a2f083b31bb9f4 (patch) | |
tree | facb759a7c6bcb155ec058169e9ef7fed7a05c3b /sql/slave.cc | |
parent | ff8676e0e1f9665a92f44ef7685a7221a451ddc3 (diff) | |
download | mariadb-git-bfec9c64b8a6e25c1c0da3e219a2f083b31bb9f4.tar.gz |
MDEV-26: Global transaction ID, intermediate commit.
- Fix that slave GTID state was updated from the wrong place in the code,
causing random crashing and other misery.
- Fix updates to mysql.rpl_slave_state to not go to binlog (this would cause
duplicate key errors on the slave and is generally the wrong thing to do).
Diffstat (limited to 'sql/slave.cc')
-rw-r--r-- | sql/slave.cc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sql/slave.cc b/sql/slave.cc index 3c98ecf3639..33455986008 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -5151,25 +5151,8 @@ MYSQL *rpl_connect_master(MYSQL *mysql) bool flush_relay_log_info(Relay_log_info* rli) { bool error=0; - uint64 sub_id; - rpl_gtid gtid; DBUG_ENTER("flush_relay_log_info"); - /* - Update the GTID position, if we have it and did not already update - it in a GTID transaction. - */ - if ((sub_id= rli->gtid_sub_id)) - { - rli->gtid_sub_id= 0; - gtid= rli->current_gtid; - if (rpl_global_gtid_slave_state.record_gtid(rli->sql_thd, - >id, sub_id, false)) - error= 1; - else - update_slave_gtid_state_hash(sub_id, >id); - } - if (unlikely(rli->no_storage)) DBUG_RETURN(0); |