summaryrefslogtreecommitdiff
path: root/ndb/src/mgmapi
diff options
context:
space:
mode:
authorjoreland@mysql.com <>2005-02-21 15:22:01 +0100
committerjoreland@mysql.com <>2005-02-21 15:22:01 +0100
commitd31fbe1747b5041acab14ed85fcffdd1f050bb12 (patch)
tree808920399dfcb98f68c42fa7064bb0ca03d13b5b /ndb/src/mgmapi
parentef3607c7604ad93b13d2979d2b8885940ce3b954 (diff)
downloadmariadb-git-d31fbe1747b5041acab14ed85fcffdd1f050bb12.tar.gz
bug#8645 - ndb - ndb_mgmd nodeid handling
(not to be merged as code has changed in 5.0)
Diffstat (limited to 'ndb/src/mgmapi')
-rw-r--r--ndb/src/mgmapi/LocalConfig.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ndb/src/mgmapi/LocalConfig.cpp b/ndb/src/mgmapi/LocalConfig.cpp
index 1dc805557ee..0265f982df3 100644
--- a/ndb/src/mgmapi/LocalConfig.cpp
+++ b/ndb/src/mgmapi/LocalConfig.cpp
@@ -226,7 +226,13 @@ LocalConfig::parseString(const char * connectString, BaseString &err){
return false;
}
- if (!found_other) {
+ if (b_nodeId && !found_other)
+ {
+ BaseString tmp;
+ tmp.assfmt("host=localhost:%s", NDB_PORT);
+ if(parseHostName(tmp.c_str()))
+ return true;
+
err.appfmt("Missing host/file name extry in \"%s\"", connectString);
return false;
}