Commit 63b36352 authored by unknown's avatar unknown
Browse files

ndb - Handle connections without corresponding node


ndb/src/mgmsrv/ConfigInfo.cpp:
  Handle connections without corresponding node
parent ebee4cfa
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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));