summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Elkin <aelkin@mysql.com>2009-04-30 15:47:09 +0300
committerAndrei Elkin <aelkin@mysql.com>2009-04-30 15:47:09 +0300
commitcc491da07f1e267b8652a75a7adcc603347e04ec (patch)
treec465d55230e7aa892fea403e301587c62c57fb64
parent765cc53c84a505e9e92abf3d09b018e17dfd4a04 (diff)
parent2d20930eee4d67e833195859192037fcb27491b0 (diff)
downloadmariadb-git-cc491da07f1e267b8652a75a7adcc603347e04ec.tar.gz
merge bug#44179 fixes to 5.1-bt
-rw-r--r--sql/sql_repl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc
index 6285a2dfb55..06c6c022780 100644
--- a/sql/sql_repl.cc
+++ b/sql/sql_repl.cc
@@ -1026,7 +1026,10 @@ int reset_slave(THD *thd, Master_info* mi)
if ((error= purge_relay_logs(&mi->rli, thd,
1 /* just reset */,
&errmsg)))
+ {
+ sql_errno= ER_RELAY_LOG_FAIL;
goto err;
+ }
/*
Clear master's log coordinates and reset host/user/etc to the values