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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a35a5cd3
Commit
a35a5cd3
authored
May 17, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-main
parents
5aabf1a9
6ee68c82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
ndb/src/mgmapi/mgmapi.cpp
ndb/src/mgmapi/mgmapi.cpp
+3
-0
ndb/tools/waiter.cpp
ndb/tools/waiter.cpp
+6
-0
No files found.
ndb/src/mgmapi/mgmapi.cpp
View file @
a35a5cd3
...
@@ -695,10 +695,12 @@ ndb_mgm_get_status(NdbMgmHandle handle)
...
@@ -695,10 +695,12 @@ ndb_mgm_get_status(NdbMgmHandle handle)
Vector
<
BaseString
>
split
;
Vector
<
BaseString
>
split
;
tmp
.
split
(
split
,
":"
);
tmp
.
split
(
split
,
":"
);
if
(
split
.
size
()
!=
2
){
if
(
split
.
size
()
!=
2
){
SET_ERROR
(
handle
,
NDB_MGM_ILLEGAL_NODE_STATUS
,
buf
);
return
NULL
;
return
NULL
;
}
}
if
(
!
(
split
[
0
].
trim
()
==
"nodes"
)){
if
(
!
(
split
[
0
].
trim
()
==
"nodes"
)){
SET_ERROR
(
handle
,
NDB_MGM_ILLEGAL_NODE_STATUS
,
buf
);
return
NULL
;
return
NULL
;
}
}
...
@@ -746,6 +748,7 @@ ndb_mgm_get_status(NdbMgmHandle handle)
...
@@ -746,6 +748,7 @@ ndb_mgm_get_status(NdbMgmHandle handle)
if
(
i
+
1
!=
noOfNodes
){
if
(
i
+
1
!=
noOfNodes
){
free
(
state
);
free
(
state
);
SET_ERROR
(
handle
,
NDB_MGM_ILLEGAL_NODE_STATUS
,
"Node count mismatch"
);
return
NULL
;
return
NULL
;
}
}
...
...
ndb/tools/waiter.cpp
View file @
a35a5cd3
...
@@ -124,6 +124,12 @@ getStatus(){
...
@@ -124,6 +124,12 @@ getStatus(){
ndbout
<<
"status==NULL, retries="
<<
retries
<<
endl
;
ndbout
<<
"status==NULL, retries="
<<
retries
<<
endl
;
MGMERR
(
handle
);
MGMERR
(
handle
);
retries
++
;
retries
++
;
ndb_mgm_disconnect
(
handle
);
if
(
ndb_mgm_connect
(
handle
,
0
,
0
,
1
))
{
MGMERR
(
handle
);
g_err
<<
"Reconnect failed"
<<
endl
;
break
;
}
continue
;
continue
;
}
}
int
count
=
status
->
no_of_nodes
;
int
count
=
status
->
no_of_nodes
;
...
...
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