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
c9e5bacc
Commit
c9e5bacc
authored
Feb 14, 2005
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected error in checking get() return value from config iterator
parent
05ad345d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ndb/src/mgmsrv/MgmtSrvr.cpp
ndb/src/mgmsrv/MgmtSrvr.cpp
+4
-4
No files found.
ndb/src/mgmsrv/MgmtSrvr.cpp
View file @
c9e5bacc
...
...
@@ -2833,7 +2833,7 @@ MgmtSrvr::setConnectionDbParameter(int node1,
DBUG_RETURN
(
-
2
);
}
if
(
iter
.
get
(
param
,
&
current_value
)
<
0
)
{
if
(
iter
.
get
(
param
,
&
current_value
)
!=
0
)
{
msg
.
assign
(
"Unable to get current value of parameter"
);
NdbMutex_Unlock
(
m_configMutex
);
DBUG_RETURN
(
-
3
);
...
...
@@ -2848,7 +2848,7 @@ MgmtSrvr::setConnectionDbParameter(int node1,
DBUG_RETURN
(
-
4
);
}
if
(
iter
.
get
(
param
,
&
new_value
)
<
0
)
{
if
(
iter
.
get
(
param
,
&
new_value
)
!=
0
)
{
msg
.
assign
(
"Unable to get parameter after setting it."
);
NdbMutex_Unlock
(
m_configMutex
);
DBUG_RETURN
(
-
5
);
...
...
@@ -2883,7 +2883,7 @@ MgmtSrvr::getConnectionDbParameter(int node1,
}
for
(;
iter
.
valid
();
iter
.
next
())
{
Uint32
n1
,
n2
;
Uint32
n1
=
0
,
n2
=
0
;
iter
.
get
(
CFG_CONNECTION_NODE_1
,
&
n1
);
iter
.
get
(
CFG_CONNECTION_NODE_2
,
&
n2
);
if
((
n1
==
(
unsigned
)
node1
&&
n2
==
(
unsigned
)
node2
)
...
...
@@ -2896,7 +2896,7 @@ MgmtSrvr::getConnectionDbParameter(int node1,
DBUG_RETURN
(
-
1
);
}
if
(
iter
.
get
(
param
,
(
Uint32
*
)
value
)
<
0
)
{
if
(
iter
.
get
(
param
,
(
Uint32
*
)
value
)
!=
0
)
{
msg
.
assign
(
"Unable to get current value of parameter"
);
NdbMutex_Unlock
(
m_configMutex
);
DBUG_RETURN
(
-
1
);
...
...
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