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
60e15a24
Commit
60e15a24
authored
Jun 08, 2006
by
stewart@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/stewart/Documents/MySQL/5.0/bug19932
into mysql.com:/home/stewart/Documents/MySQL/5.0/merge-queue
parents
9b3fdd0b
7aa0eb4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
3 deletions
+24
-3
ndb/src/mgmapi/mgmapi.cpp
ndb/src/mgmapi/mgmapi.cpp
+24
-3
No files found.
ndb/src/mgmapi/mgmapi.cpp
View file @
60e15a24
...
...
@@ -678,7 +678,11 @@ ndb_mgm_get_status(NdbMgmHandle handle)
out
.
println
(
""
);
char
buf
[
1024
];
in
.
gets
(
buf
,
sizeof
(
buf
));
if
(
!
in
.
gets
(
buf
,
sizeof
(
buf
)))
{
SET_ERROR
(
handle
,
NDB_MGM_ILLEGAL_SERVER_REPLY
,
"Probably disconnected"
);
return
NULL
;
}
if
(
buf
[
strlen
(
buf
)
-
1
]
==
'\n'
)
buf
[
strlen
(
buf
)
-
1
]
=
'\0'
;
...
...
@@ -687,7 +691,11 @@ ndb_mgm_get_status(NdbMgmHandle handle)
return
NULL
;
}
in
.
gets
(
buf
,
sizeof
(
buf
));
if
(
!
in
.
gets
(
buf
,
sizeof
(
buf
)))
{
SET_ERROR
(
handle
,
NDB_MGM_ILLEGAL_SERVER_REPLY
,
"Probably disconnected"
);
return
NULL
;
}
if
(
buf
[
strlen
(
buf
)
-
1
]
==
'\n'
)
buf
[
strlen
(
buf
)
-
1
]
=
'\0'
;
...
...
@@ -710,6 +718,13 @@ ndb_mgm_get_status(NdbMgmHandle handle)
malloc
(
sizeof
(
ndb_mgm_cluster_state
)
+
noOfNodes
*
(
sizeof
(
ndb_mgm_node_state
)
+
sizeof
(
"000.000.000.000#"
)));
if
(
!
state
)
{
SET_ERROR
(
handle
,
NDB_MGM_OUT_OF_MEMORY
,
"Allocating ndb_mgm_cluster_state"
);
return
NULL
;
}
state
->
no_of_nodes
=
noOfNodes
;
ndb_mgm_node_state
*
ptr
=
&
state
->
node_states
[
0
];
int
nodeId
=
0
;
...
...
@@ -719,7 +734,13 @@ ndb_mgm_get_status(NdbMgmHandle handle)
}
i
=
-
1
;
ptr
--
;
for
(;
i
<
noOfNodes
;
){
in
.
gets
(
buf
,
sizeof
(
buf
));
if
(
!
in
.
gets
(
buf
,
sizeof
(
buf
)))
{
free
(
state
);
SET_ERROR
(
handle
,
NDB_MGM_ILLEGAL_SERVER_REPLY
,
"Probably disconnected"
);
return
NULL
;
}
tmp
.
assign
(
buf
);
if
(
tmp
.
trim
()
==
""
){
...
...
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