Commit 564ba97b authored by unknown's avatar unknown

BUG#18966 Change in stop/shutdown behaviour

Now need this fix to prevent crash of ndb_mgm on invalid mgm protocol.


ndb/src/mgmclient/CommandInterpreter.cpp:
  fix crash on invalid mgm protocol
parent ea16e525
......@@ -429,14 +429,14 @@ emptyString(const char* s)
void
CommandInterpreter::printError()
{
if (ndb_mgm_check_connection(m_mgmsrv))
{
disconnect();
}
ndbout_c("* %5d: %s",
ndb_mgm_get_latest_error(m_mgmsrv),
ndb_mgm_get_latest_error_msg(m_mgmsrv));
ndbout_c("* %s", ndb_mgm_get_latest_error_desc(m_mgmsrv));
if (ndb_mgm_check_connection(m_mgmsrv))
{
disconnect();
}
}
//*****************************************************************************
......
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