diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2016-06-27 17:59:12 -0400 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2016-06-27 17:59:12 -0400 |
commit | 2768829e5397756faeae706df80bdba468f77795 (patch) | |
tree | b1ab5d46db119aa891f7075977b0e81b47cfce65 /sql/wsrep_sst.cc | |
parent | b57232d3cb3dbf43551bf7aea42b6f439e0e49eb (diff) | |
download | mariadb-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.cc | 1 |
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); |