mirror of
https://github.com/MariaDB/server.git
synced 2025-11-16 20:23:18 +03:00
fixed and added test case for bug#5431
+ fix for support of multiple mgmt servers mysql-test/r/ndb_alter_table.result: added test case for bug #5431 mysql-test/t/ndb_alter_table.test: added test case for bug #5431 ndb/src/common/mgmcommon/ConfigRetriever.cpp: fix to make multiple mgmt srvrs work sql/ha_ndbcluster.cc: fixed and added test case for bug#5431
This commit is contained in:
@@ -102,14 +102,13 @@ ConfigRetriever::do_connect(int exit_on_connect_failure){
|
||||
if (ndb_mgm_connect(m_handle, tmp.c_str()) == 0) {
|
||||
return 0;
|
||||
}
|
||||
if (exit_on_connect_failure)
|
||||
return 1;
|
||||
setError(CR_RETRY, ndb_mgm_get_latest_error_desc(m_handle));
|
||||
case MgmId_File:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (exit_on_connect_failure)
|
||||
return 1;
|
||||
if(latestErrorType == CR_RETRY){
|
||||
REPORT_WARNING("Failed to retrieve cluster configuration");
|
||||
ndbout << "(Cause of failure: " << getErrorString() << ")" << endl;
|
||||
|
||||
Reference in New Issue
Block a user