Commit 63b36352 authored by unknown's avatar unknown

ndb - Handle connections without corresponding node


ndb/src/mgmsrv/ConfigInfo.cpp:
  Handle connections without corresponding node
parent ebee4cfa
......@@ -2973,7 +2973,13 @@ fixHostname(InitConfigFileParser::Context & ctx, const char * data){
require(ctx.m_currentSection->get(buf, &id));
const Properties * node;
require(ctx.m_config->get("Node", id, &node));
if(!ctx.m_config->get("Node", id, &node))
{
ctx.reportError("Unknown node: \"%d\" specified in connection "
"[%s] starting at line: %d",
id, ctx.fname, ctx.m_sectionLineno);
return false;
}
const char * hostname;
require(node->get("HostName", &hostname));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment