You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
tweaked to correct a failing attach at startup
This commit is contained in:
@ -7872,12 +7872,24 @@ namespace oam
|
|||||||
|
|
||||||
std::string Oam::getEC2VolumeStatus(std::string volumeName)
|
std::string Oam::getEC2VolumeStatus(std::string volumeName)
|
||||||
{
|
{
|
||||||
// run script to get Volume Status
|
bool pass = true;
|
||||||
string cmd = InstallDir + "/bin/MCSVolumeCmds.sh describe " + volumeName + " > /tmp/getVolumeStatus_" + volumeName;
|
for ( int retry = 0 ; retry < 5 ; retry++ )
|
||||||
int ret = system(cmd.c_str());
|
{
|
||||||
if (WEXITSTATUS(ret) != 0 )
|
// run script to get Volume Status
|
||||||
return "failed";
|
string cmd = InstallDir + "/bin/MCSVolumeCmds.sh describe " + volumeName + " > /tmp/getVolumeStatus_" + volumeName;
|
||||||
|
int ret = system(cmd.c_str());
|
||||||
|
if (WEXITSTATUS(ret) == 0 )
|
||||||
|
break;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sleep(1);
|
||||||
|
pass = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!pass)
|
||||||
|
return "failed";
|
||||||
|
|
||||||
// get status
|
// get status
|
||||||
string status;
|
string status;
|
||||||
string file = "/tmp/getVolumeStatus_" + volumeName;
|
string file = "/tmp/getVolumeStatus_" + volumeName;
|
||||||
|
Reference in New Issue
Block a user