From d31fbe1747b5041acab14ed85fcffdd1f050bb12 Mon Sep 17 00:00:00 2001 From: "joreland@mysql.com" <> Date: Mon, 21 Feb 2005 15:22:01 +0100 Subject: bug#8645 - ndb - ndb_mgmd nodeid handling (not to be merged as code has changed in 5.0) --- ndb/src/mgmapi/LocalConfig.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ndb/src/mgmapi') 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; } -- cgit v1.2.1