BUG#18966 Change in stop/shutdown behaviour

Now need this fix to prevent crash of ndb_mgm on invalid mgm protocol.
This commit is contained in:
stewart@mysql.com 2006-05-18 21:32:24 +10:00
parent 40b7307e03
commit 53cd541187

View file

@ -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();
}
}
//*****************************************************************************