Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2768829e
Commit
2768829e
authored
Jun 27, 2016
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-10056: SST method mysqldump is broken
errno must be reset before strtol()/strtoll() functions are invoked.
parent
b57232d3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
sql/wsrep_sst.cc
sql/wsrep_sst.cc
+1
-0
sql/wsrep_utils.h
sql/wsrep_utils.h
+1
-0
No files found.
sql/wsrep_sst.cc
View file @
2768829e
...
...
@@ -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
);
...
...
sql/wsrep_utils.h
View file @
2768829e
...
...
@@ -155,6 +155,7 @@ private:
}
bool
parse_port
(
const
char
*
port
)
{
errno
=
0
;
/* Reset the errno */
m_port
=
strtol
(
port
,
NULL
,
10
);
if
(
errno
==
EINVAL
||
errno
==
ERANGE
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment