summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-01-10 14:30:11 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2017-01-10 14:30:11 +0200
commit5044dae239d094582879792de7a762d3428223ce (patch)
treede7baaf095317ab19949f4e7fa205cf9dce44ab8 /sql/slave.cc
parent4b05d60e62ef6e21d5329a9667813df890034ff0 (diff)
parent78e6fafcaa93bdd2cf793a82a812137eb7a779a7 (diff)
downloadmariadb-git-5044dae239d094582879792de7a762d3428223ce.tar.gz
Merge 10.0 into 10.1
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc15
1 files changed, 4 insertions, 11 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 1846938f746..717d37a7907 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -4796,11 +4796,11 @@ pthread_handler_t handle_slave_sql(void *arg)
{
rli->report(ERROR_LEVEL, ER_SLAVE_FATAL_ERROR, NULL,
"Error initializing relay log position: %s", errmsg);
- goto err;
+ goto err_before_start;
}
rli->reset_inuse_relaylog();
if (rli->alloc_inuse_relaylog(rli->group_relay_log_name))
- goto err;
+ goto err_before_start;
strcpy(rli->future_event_master_log_name, rli->group_master_log_name);
THD_CHECK_SENTRY(thd);
@@ -4977,6 +4977,7 @@ pthread_handler_t handle_slave_sql(void *arg)
}
}
+ err:
if (mi->using_parallel())
rli->parallel.wait_for_done(thd, rli);
@@ -4994,15 +4995,7 @@ pthread_handler_t handle_slave_sql(void *arg)
rli->group_master_log_pos, tmp.c_ptr_safe());
}
- err:
-
- /*
- Once again, in case we aborted with an error and skipped the first one.
- (We want the first one to be before the printout of stop position to
- get the correct position printed.)
- */
- if (mi->using_parallel())
- rli->parallel.wait_for_done(thd, rli);
+ err_before_start:
/*
Some events set some playgrounds, which won't be cleared because thread