diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2004-11-16 07:24:11 +0000 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2004-11-16 07:24:11 +0000 |
commit | 1a9a113201f255be7b39252df6cb47dbbf643a88 (patch) | |
tree | b94f42d83ba44ba20c3363e81c137e1e7698acee /ndb/src/common/mgmcommon/ConfigRetriever.cpp | |
parent | 5b20904078c215410c7655e39d66175a144ace8f (diff) | |
download | mariadb-git-1a9a113201f255be7b39252df6cb47dbbf643a88.tar.gz |
provided better error printout for mismatch of node types in configuratoin fetch
fixed to that mgmt server actually uses the connectsring
ndb/src/common/mgmcommon/ConfigRetriever.cpp:
provided better error printout
ndb/src/mgmsrv/main.cpp:
fixed to that mgmt server actually uses the connectsring
Diffstat (limited to 'ndb/src/common/mgmcommon/ConfigRetriever.cpp')
-rw-r--r-- | ndb/src/common/mgmcommon/ConfigRetriever.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/ndb/src/common/mgmcommon/ConfigRetriever.cpp b/ndb/src/common/mgmcommon/ConfigRetriever.cpp index d8417ac146a..a1b979f62d8 100644 --- a/ndb/src/common/mgmcommon/ConfigRetriever.cpp +++ b/ndb/src/common/mgmcommon/ConfigRetriever.cpp @@ -238,7 +238,8 @@ ConfigRetriever::verifyConfig(const struct ndb_mgm_configuration * conf, Uint32 char buf[255]; ndb_mgm_configuration_iterator * it; - it = ndb_mgm_create_configuration_iterator((struct ndb_mgm_configuration *)conf, CFG_SECTION_NODE); + it = ndb_mgm_create_configuration_iterator((struct ndb_mgm_configuration *)conf, + CFG_SECTION_NODE); if(it == 0){ BaseString::snprintf(buf, 255, "Unable to create config iterator"); @@ -284,8 +285,14 @@ ConfigRetriever::verifyConfig(const struct ndb_mgm_configuration * conf, Uint32 } if(_type != m_node_type){ - BaseString::snprintf(buf, 255, "Supplied node type(%d) and config node type(%d) " - " don't match", m_node_type, _type); + const char *type_s, *alias_s, *type_s2, *alias_s2; + alias_s= ndb_mgm_get_node_type_alias_string((enum ndb_mgm_node_type)m_node_type, + &type_s); + alias_s2= ndb_mgm_get_node_type_alias_string((enum ndb_mgm_node_type)_type, + &type_s2); + BaseString::snprintf(buf, 255, "This node type %s(%s) and config " + "node type %s(%s) don't match for nodeid %d", + alias_s, type_s, alias_s2, type_s2, nodeid); setError(CR_ERROR, buf); return false; } |