mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
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:
parent
40b7307e03
commit
53cd541187
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
|
|
Loading…
Reference in a new issue