diff options
author | unknown <gni/root@dev3-221.dev.cn.tlan> | 2006-12-14 19:02:57 +0800 |
---|---|---|
committer | unknown <gni/root@dev3-221.dev.cn.tlan> | 2006-12-14 19:02:57 +0800 |
commit | 789c86abd4385af487efa9374b67a8de2567ea24 (patch) | |
tree | 7be9c7c1ad65a8688d1d1cda65867316bf57733b /ndb | |
parent | 9cd15740ed089a45d0daba13768aafdd73f3a95a (diff) | |
parent | 6ff0409d889e0c179ef9322dd49ee353276a73ce (diff) | |
download | mariadb-git-789c86abd4385af487efa9374b67a8de2567ea24.tar.gz |
Merge dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-4.1/mysql-4.1-ndb-bj
into dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-4.1/mysql-4.1-bug21715
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/mgmclient/CommandInterpreter.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ndb/src/mgmclient/CommandInterpreter.cpp b/ndb/src/mgmclient/CommandInterpreter.cpp index 65d5b038707..ea5dc218898 100644 --- a/ndb/src/mgmclient/CommandInterpreter.cpp +++ b/ndb/src/mgmclient/CommandInterpreter.cpp @@ -1627,6 +1627,18 @@ CommandInterpreter::executeStatus(int processId, ndbout << processId << ": Node not found" << endl; return -1; } + if (cl->node_states[i].node_type != NDB_MGM_NODE_TYPE_NDB){ + if (cl->node_states[i].version != 0){ + ndbout << "Node "<< cl->node_states[i].node_id <<": connected" ; + ndbout_c(" (Version %d.%d.%d)", + getMajor(version) , + getMinor(version), + getBuild(version)); + + }else + ndbout << "Node "<< cl->node_states[i].node_id <<": not connected" << endl; + return 0; + } status = cl->node_states[i].node_status; startPhase = cl->node_states[i].start_phase; version = cl->node_states[i].version; |