mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
ndb - Handle connections without corresponding node
ndb/src/mgmsrv/ConfigInfo.cpp: Handle connections without corresponding node
This commit is contained in:
parent
ebee4cfad3
commit
63b36352d8
1 changed files with 7 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue