Commit 564ba97b authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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();
  }
}

//*****************************************************************************