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
7cf1e5c3
Commit
7cf1e5c3
authored
Aug 24, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some more printouts to SHOW command
mysql-test/ndb/ndbcluster.sh: stop instead of kill
parent
4a15609f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
16 deletions
+24
-16
mysql-test/ndb/ndbcluster.sh
mysql-test/ndb/ndbcluster.sh
+1
-0
ndb/src/mgmclient/CommandInterpreter.cpp
ndb/src/mgmclient/CommandInterpreter.cpp
+23
-16
No files found.
mysql-test/ndb/ndbcluster.sh
View file @
7cf1e5c3
...
...
@@ -194,6 +194,7 @@ stop_default_ndbcluster() {
exec_mgmtclient
=
"
$exec_mgmtclient
--try-reconnect=1"
echo
"all stop"
|
$exec_mgmtclient
2>&1 |
cat
>
/dev/null
echo
"3 stop"
|
$exec_mgmtclient
2>&1 |
cat
>
/dev/null
if
[
-f
"
$fs_ndb
/
$pidfile
"
]
;
then
kill
-9
`
cat
"
$fs_ndb
/
$pidfile
"
`
2> /dev/null
...
...
ndb/src/mgmclient/CommandInterpreter.cpp
View file @
7cf1e5c3
...
...
@@ -649,9 +649,10 @@ CommandInterpreter::executeShow(char* parameters)
}
int
ndb_nodes
=
0
,
api_nodes
=
0
,
mgm_nodes
=
0
;
master_id
=
0
,
ndb_nodes
=
0
,
api_nodes
=
0
,
mgm_nodes
=
0
;
for
(
i
=
0
;
i
<
state
->
no_of_nodes
;
i
++
)
{
switch
(
state
->
node_states
[
i
].
node_type
)
{
...
...
@@ -659,6 +660,8 @@ CommandInterpreter::executeShow(char* parameters)
api_nodes
++
;
break
;
case
NDB_MGM_NODE_TYPE_NDB
:
if
(
state
->
node_states
[
i
].
dynamic_id
>
master_id
)
master_id
=
state
->
node_states
[
i
].
dynamic_id
;
ndb_nodes
++
;
break
;
case
NDB_MGM_NODE_TYPE_MGM
:
...
...
@@ -681,8 +684,11 @@ CommandInterpreter::executeShow(char* parameters)
ndbout
<<
" (Version: "
<<
getMajor
(
state
->
node_states
[
i
].
version
)
<<
"."
<<
getMinor
(
state
->
node_states
[
i
].
version
)
<<
"."
<<
getBuild
(
state
->
node_states
[
i
].
version
)
<<
")"
<<
endl
;
<<
getBuild
(
state
->
node_states
[
i
].
version
)
<<
","
<<
" Nodegroup: "
<<
state
->
node_states
[
i
].
node_group
;
if
(
state
->
node_states
[
i
].
dynamic_id
==
master_id
)
ndbout
<<
", Master"
;
ndbout
<<
")"
<<
endl
;
}
else
{
ndbout
<<
" (not connected) "
<<
endl
;
...
...
@@ -692,13 +698,13 @@ CommandInterpreter::executeShow(char* parameters)
}
ndbout
<<
endl
;
ndbout
<<
api
_nodes
<<
"
API
Node(s)"
ndbout
<<
mgm
_nodes
<<
"
MGM
Node(s)"
<<
endl
;
for
(
i
=
0
;
i
<
state
->
no_of_nodes
;
i
++
)
{
if
(
state
->
node_states
[
i
].
node_type
==
NDB_MGM_NODE_TYPE_
API
)
{
ndbout
<<
"
API
node:
\t
"
<<
state
->
node_states
[
i
].
node_id
;
if
(
state
->
node_states
[
i
].
node_type
==
NDB_MGM_NODE_TYPE_
MGM
)
{
ndbout
<<
"
MGM
node:
\t
"
<<
state
->
node_states
[
i
].
node_id
;
if
(
state
->
node_states
[
i
].
version
!=
0
)
{
ndbout
<<
" (Version: "
<<
getMajor
(
state
->
node_states
[
i
].
version
)
<<
"."
...
...
@@ -707,19 +713,19 @@ CommandInterpreter::executeShow(char* parameters)
}
else
{
ndbout
<<
" (no
t connected
) "
<<
endl
;
ndbout
<<
" (no
version information available
) "
<<
endl
;
}
}
}
ndbout
<<
endl
;
ndbout
<<
mgm
_nodes
<<
"
MGM
Node(s)"
ndbout
<<
api
_nodes
<<
"
API
Node(s)"
<<
endl
;
for
(
i
=
0
;
i
<
state
->
no_of_nodes
;
i
++
)
{
if
(
state
->
node_states
[
i
].
node_type
==
NDB_MGM_NODE_TYPE_
MGM
)
{
ndbout
<<
"
MGM
node:
\t
"
<<
state
->
node_states
[
i
].
node_id
;
if
(
state
->
node_states
[
i
].
node_type
==
NDB_MGM_NODE_TYPE_
API
)
{
ndbout
<<
"
API
node:
\t
"
<<
state
->
node_states
[
i
].
node_id
;
if
(
state
->
node_states
[
i
].
version
!=
0
)
{
ndbout
<<
" (Version: "
<<
getMajor
(
state
->
node_states
[
i
].
version
)
<<
"."
...
...
@@ -728,11 +734,12 @@ CommandInterpreter::executeShow(char* parameters)
}
else
{
ndbout
<<
" (no
version information available
) "
<<
endl
;
ndbout
<<
" (no
t connected
) "
<<
endl
;
}
}
}
ndbout
<<
endl
;
// ndbout << helpTextShow;
return
;
}
else
if
(
strcmp
(
parameters
,
"PROPERTIES"
)
==
0
||
...
...
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