1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00

MCOL-1370

This commit is contained in:
david hill
2018-05-30 16:16:42 -05:00
parent 4fe399e5c0
commit b2314f152d

View File

@@ -5478,18 +5478,24 @@ namespace oam
} }
//detach first to make sure DBS can be detach before trying to move to another pm //detach first to make sure DBS can be detach before trying to move to another pm
try DBRootConfigList::iterator pt3 = residedbrootConfigList.begin();
for( ; pt3 != residedbrootConfigList.end() ; )
{ {
typedef std::vector<string> dbrootList; int dbrootID = *pt3;
dbrootList dbrootlist;
dbrootlist.push_back(itoa(dbrootID));
amazonDetach(dbrootlist); try
} {
catch (exception& ) typedef std::vector<string> dbrootList;
{ dbrootList dbrootlist;
writeLog("ERROR: amazonDetach failure", LOG_TYPE_ERROR ); dbrootlist.push_back(itoa(dbrootID));
exceptionControl("autoMovePmDbroot", API_DETACH_FAILURE);
amazonDetach(dbrootlist);
}
catch (exception& )
{
writeLog("ERROR: amazonDetach failure", LOG_TYPE_ERROR );
exceptionControl("autoMovePmDbroot", API_DETACH_FAILURE);
}
} }
//get dbroot id for other PMs //get dbroot id for other PMs