1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

add ems type support

This commit is contained in:
david hill
2016-05-05 09:22:44 -05:00
parent 319cea322b
commit 748b3a3185
3 changed files with 55 additions and 9 deletions

View File

@ -5939,7 +5939,7 @@ namespace oam
catch(...) {}
writeLog("addUMdisk - Create new Volume for um" + itoa(moduleID), LOG_TYPE_DEBUG);
volumeName = createEC2Volume(UMVolumeSize);
volumeName = createEC2Volume(UMVolumeSize, "um");
if ( volumeName == "failed" ) {
writeLog("addModule: create volume failed", LOG_TYPE_CRITICAL);
exceptionControl("addUMdisk", API_FAILURE);
@ -6120,7 +6120,7 @@ namespace oam
int retry = 0;
for ( ; retry < 5 ; retry++ )
{
volumeName = createEC2Volume(volumeSize);
volumeName = createEC2Volume(volumeSize, "pm");
if ( volumeName == "failed" || volumeName.empty() )
retry = retry;
@ -7839,7 +7839,7 @@ namespace oam
std::string Oam::createEC2Volume(std::string size, std::string name)
{
// run script to get Volume Status
string cmd = InstallDir + "/bin/IDBVolumeCmds.sh create " + size + " > /tmp/createVolumeStatus_" + name;
string cmd = InstallDir + "/bin/IDBVolumeCmds.sh create " + size + " " + name + " > /tmp/createVolumeStatus_" + name;
int ret = system(cmd.c_str());
if (WEXITSTATUS(ret) != 0 )
return "failed";