From 51eaa7fe53eb017ffb3f4dc2f318cb0511b7cd26 Mon Sep 17 00:00:00 2001 From: Kristian Nielsen Date: Fri, 11 Sep 2015 10:51:56 +0200 Subject: MDEV-8193: UNTIL clause in START SLAVE is sporadically disobeyed by parallel replication The code was using the wrong variable when comparing the binlog name for the UNTIL position. This could cause the comparison to fail after binlog rotation, in turn causing the UNTIL clause to not trigger slave stop. --- sql/rpl_parallel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/rpl_parallel.cc') diff --git a/sql/rpl_parallel.cc b/sql/rpl_parallel.cc index df6fc92e9bd..cc5da77303c 100644 --- a/sql/rpl_parallel.cc +++ b/sql/rpl_parallel.cc @@ -95,7 +95,6 @@ handle_queued_pos_update(THD *thd, rpl_parallel_thread::queued_event *qev) if (cmp < 0) { strcpy(rli->group_master_log_name, qev->future_event_master_log_name); - rli->notify_group_master_log_name_update(); rli->group_master_log_pos= qev->future_event_master_log_pos; } else if (cmp == 0 @@ -2065,6 +2064,7 @@ rpl_parallel::do_event(rpl_group_info *serial_rgi, Log_event *ev, { memcpy(rli->future_event_master_log_name, rev->new_log_ident, rev->ident_len+1); + rli->notify_group_master_log_name_update(); } } -- cgit v1.2.1