diff options
author | Kristian Nielsen <knielsen@knielsen-hq.org> | 2016-01-15 12:50:23 +0100 |
---|---|---|
committer | Kristian Nielsen <knielsen@knielsen-hq.org> | 2016-01-15 12:50:23 +0100 |
commit | 74b1af19e9270a932f9e5f907eff53852984a7d3 (patch) | |
tree | 77eb2e71173ac223b13c48a772ad3f5f8a11aa65 /sql/slave.cc | |
parent | 3730d8a225fe33a0157e0aaa85121ef7cecf288d (diff) | |
parent | 06b2e327fcb9ee8737e66cf0893766df41c9d8f8 (diff) | |
download | mariadb-git-74b1af19e9270a932f9e5f907eff53852984a7d3.tar.gz |
Merge branch 'tmp' into tmp-10.0
Conflicts:
sql/slave.cc
Diffstat (limited to 'sql/slave.cc')
-rw-r--r-- | sql/slave.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sql/slave.cc b/sql/slave.cc index 7474aec38ca..e3209ab31f5 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -4540,15 +4540,6 @@ pthread_handler_t handle_slave_sql(void *arg) serial_rgi->gtid_sub_id= 0; serial_rgi->gtid_pending= false; - if (mi->using_gtid != Master_info::USE_GTID_NO) - { - /* - We initialize the relay log state from the know starting position. - It will then be updated as required by GTID and GTID_LIST events found - while applying events read from relay logs. - */ - rli->relay_log_state.load(rpl_global_gtid_slave_state); - } rli->gtid_skip_flag = GTID_SKIP_NOT; if (init_relay_log_pos(rli, rli->group_relay_log_name, @@ -4804,6 +4795,7 @@ log '%s' at position %s, relay log '%s' position: %s%s", RPL_LOG_NAME, } strmake_buf(rli->group_relay_log_name, ir->name); rli->group_relay_log_pos= BIN_LOG_HEADER_SIZE; + rli->relay_log_state.load(ir->relay_log_state, ir->relay_log_state_count); } } } |