summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <stewart@mysql.com>2005-06-08 17:35:11 +1000
committerunknown <stewart@mysql.com>2005-06-08 17:35:11 +1000
commitdb20f45b7d5fc4f857eb5fbe3e6a0c5d62bb7a00 (patch)
tree5b351d1923f92887ab8c90dd52a623c239e4852a /ndb
parent41afcdb6c6855d9e81ddba209362b490230a5aed (diff)
downloadmariadb-git-db20f45b7d5fc4f857eb5fbe3e6a0c5d62bb7a00.tar.gz
BUG#10893 Cluster hangs on initial startup
IPCConfig wasn't constructing the connect string properly. ndb/src/common/mgmcommon/IPCConfig.cpp: fix construction of connect string from configuration. the port number was not being added correctly. This would cause the handle to default to localhost:1186
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/common/mgmcommon/IPCConfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ndb/src/common/mgmcommon/IPCConfig.cpp b/ndb/src/common/mgmcommon/IPCConfig.cpp
index f188a433f1b..f45bc6ead54 100644
--- a/ndb/src/common/mgmcommon/IPCConfig.cpp
+++ b/ndb/src/common/mgmcommon/IPCConfig.cpp
@@ -188,7 +188,7 @@ IPCConfig::configureTransporters(Uint32 nodeId,
if(iter.get(CFG_NODE_HOST, &hostname)) continue;
if( strlen(hostname) == 0 ) continue;
if(iter.get(CFG_MGM_PORT, &port)) continue;
- connect_string.appfmt("%s%s:port",separator,hostname,port);
+ connect_string.appfmt("%s%s:%u",separator,hostname,port);
separator= ",";
}
NdbMgmHandle h= ndb_mgm_create_handle();