summaryrefslogtreecommitdiff
path: root/ndb/src/mgmclient
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2005-02-17 09:37:07 +0100
committerunknown <tomas@poseidon.ndb.mysql.com>2005-02-17 09:37:07 +0100
commitccdb4f6671808e00c4c066f8bc012bb46b94c2f3 (patch)
treefac2411ae06e211e20f1bd756d9b41c3577ff509 /ndb/src/mgmclient
parent7a37dcc1b890ea727600e1eeec6e4e9e1e31fc3e (diff)
parenta58a1dace8d88708c62257e50ccba9d5b9b36529 (diff)
downloadmariadb-git-ccdb4f6671808e00c4c066f8bc012bb46b94c2f3.tar.gz
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb-wl2278 BitKeeper/etc/logging_ok: auto-union configure.in: Auto merged mysql-test/mysql-test-run.pl: Auto merged ndb/include/mgmapi/mgmapi.h: Auto merged ndb/src/kernel/vm/Configuration.cpp: Auto merged ndb/src/mgmapi/mgmapi.cpp: Auto merged ndb/src/mgmclient/CommandInterpreter.cpp: Auto merged sql/sql_parse.cc: Auto merged
Diffstat (limited to 'ndb/src/mgmclient')
-rw-r--r--ndb/src/mgmclient/CommandInterpreter.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/ndb/src/mgmclient/CommandInterpreter.cpp b/ndb/src/mgmclient/CommandInterpreter.cpp
index 0af3519abe8..389fc08b97c 100644
--- a/ndb/src/mgmclient/CommandInterpreter.cpp
+++ b/ndb/src/mgmclient/CommandInterpreter.cpp
@@ -1083,16 +1083,19 @@ print_nodes(ndb_mgm_cluster_state *state, ndb_mgm_configuration_iterator *it,
}
ndbout << ")" << endl;
} else {
- if(ndb_mgm_find(it, CFG_NODE_ID, node_id) != 0){
+ ndb_mgm_first(it);
+ if(ndb_mgm_find(it, CFG_NODE_ID, node_id) == 0){
+ const char *config_hostname= 0;
+ ndb_mgm_get_string_parameter(it, CFG_NODE_HOST, &config_hostname);
+ if (config_hostname == 0 || config_hostname[0] == 0)
+ config_hostname= "any host";
+ ndbout_c(" (not connected, accepting connect from %s)",
+ config_hostname);
+ }
+ else
+ {
ndbout_c("Unable to find node with id: %d", node_id);
- return;
}
- const char *config_hostname= 0;
- ndb_mgm_get_string_parameter(it, CFG_NODE_HOST, &config_hostname);
- if (config_hostname == 0 || config_hostname[0] == 0)
- config_hostname= "any host";
- ndbout << " (not connected, accepting connect from "
- << config_hostname << ")" << endl;
}
}
}