1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

change code for amazon storaeg device name

This commit is contained in:
david hill
2016-04-18 16:57:21 -05:00
parent 45cdae50df
commit 484d36cb31
3 changed files with 32 additions and 9 deletions

View File

@ -1456,9 +1456,13 @@ int main(int argc, char *argv[])
string volumeName = oam::UnassignedName;
string deviceNameID = "PMVolumeDeviceName" + oam.itoa(id);
string deviceName = oam::UnassignedName;
string amazondeviceNameID = "PMVolumeAmazonDeviceName" + oam.itoa(id);
string amazondeviceName = oam::UnassignedName;
try {
volumeName = sysConfigOld->getConfig(InstallSection, volumeNameID);
deviceName = sysConfigOld->getConfig(InstallSection, deviceNameID);
amazondeviceName = sysConfigOld->getConfig(InstallSection, amazondeviceNameID);
}
catch(...)
{}
@ -1466,6 +1470,25 @@ int main(int argc, char *argv[])
try {
sysConfigNew->setConfig(InstallSection, volumeNameID, volumeName);
sysConfigNew->setConfig(InstallSection, deviceNameID, deviceName);
sysConfigNew->setConfig(InstallSection, amazondeviceNameID, amazondeviceName);
}
catch(...)
{}
string UMVolumeSize = oam::UnassignedName;
string PMVolumeSize = oam::UnassignedName;
try {
UMVolumeSize = sysConfigOld->getConfig(InstallSection, "UMVolumeSize");
PMVolumeSize = sysConfigOld->getConfig(InstallSection, "PMVolumeSize");
}
catch(...)
{}
try {
sysConfigNew->setConfig(InstallSection, "UMVolumeSize", UMVolumeSize);
sysConfigNew->setConfig(InstallSection, "PMVolumeSize", PMVolumeSize);
}
catch(...)
{}