summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2013-11-14 15:08:29 +0100
committerunknown <knielsen@knielsen-hq.org>2013-11-14 15:08:29 +0100
commitdef3c98af47a95981437de3ccee8bc1a736cd4a7 (patch)
tree438b53f9cd2a2df15e829c2060368b815b4462b3 /sql/slave.cc
parentbdd883ed9a68ff1e82528cc6b33316d98894cfd2 (diff)
downloadmariadb-git-def3c98af47a95981437de3ccee8bc1a736cd4a7.tar.gz
MDEV-5291: Slave transaction retry on temporary error leaves dangling error in SHOW SLAVE STATUS
Make sure to clear the temporary error before the retry.
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 1907e704e3d..76c9a100104 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -3453,6 +3453,7 @@ static int exec_relay_log_event(THD* thd, Relay_log_info* rli,
if (exec_res && (temp_err= has_temporary_error(thd)))
{
const char *errmsg;
+ rli->clear_error();
/*
We were in a transaction which has been rolled back because of a
temporary error;