summaryrefslogtreecommitdiff
path: root/sql/wsrep_sst.cc
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2016-06-27 17:59:12 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2016-06-27 17:59:12 -0400
commit2768829e5397756faeae706df80bdba468f77795 (patch)
treeb1ab5d46db119aa891f7075977b0e81b47cfce65 /sql/wsrep_sst.cc
parentb57232d3cb3dbf43551bf7aea42b6f439e0e49eb (diff)
downloadmariadb-git-2768829e5397756faeae706df80bdba468f77795.tar.gz
MDEV-10056: SST method mysqldump is broken
errno must be reset before strtol()/strtoll() functions are invoked.
Diffstat (limited to 'sql/wsrep_sst.cc')
-rw-r--r--sql/wsrep_sst.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/wsrep_sst.cc b/sql/wsrep_sst.cc
index 4f6cc51c3f8..c2a1ab58660 100644
--- a/sql/wsrep_sst.cc
+++ b/sql/wsrep_sst.cc
@@ -340,6 +340,7 @@ static int sst_scan_uuid_seqno (const char* str,
wsrep_uuid_t* uuid, wsrep_seqno_t* seqno)
{
int offt = wsrep_uuid_scan (str, strlen(str), uuid);
+ errno= 0; /* Reset the errno */
if (offt > 0 && strlen(str) > (unsigned int)offt && ':' == str[offt])
{
*seqno = strtoll (str + offt + 1, NULL, 10);