summaryrefslogtreecommitdiff
path: root/sql/sql_repl.cc
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2013-02-27 21:10:40 +0100
committerunknown <knielsen@knielsen-hq.org>2013-02-27 21:10:40 +0100
commit06ffea8c5bfc351cace3997f4ea54b8dcfce2ac4 (patch)
tree39fbfb73f09992151bae15a4f40a7f2f508eb91c /sql/sql_repl.cc
parenta7e1860ec0b6a61f5f0b4597c6b89ed84c005c60 (diff)
downloadmariadb-git-06ffea8c5bfc351cace3997f4ea54b8dcfce2ac4.tar.gz
MDEV-26: Global Transaction ID
Fix that CHANGE MASTER ... MASTER_GTID_POS="" works to start from the very beginning of the binary log (with test case). Fix that not finding the requested GTID position in master binlog results in fatal error, not endless connect retry.
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r--sql/sql_repl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc
index d9f4c1f0b0e..db4153becdf 100644
--- a/sql/sql_repl.cc
+++ b/sql/sql_repl.cc
@@ -1292,7 +1292,7 @@ void mysql_binlog_send(THD* thd, char* log_ident, my_off_t pos,
}
if ((errmsg= gtid_find_binlog_file(&gtid_state, search_file_name)))
{
- my_errno= ER_UNKNOWN_ERROR;
+ my_errno= ER_MASTER_FATAL_ERROR_READING_BINLOG;
goto err;
}
pos= 4;