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

change amazon failover logic, make work like normal system

This commit is contained in:
david hill
2016-03-02 14:27:29 -06:00
parent f38cfc6480
commit 92bf40fcbb
6 changed files with 47 additions and 83 deletions

View File

@ -1806,16 +1806,34 @@ int main(int argc, char *argv[])
{}
try {
string AmazonPMFailover = sysConfigOld->getConfig("Installation", "AmazonPMFailover");
string AmazonAccessKey = sysConfigOld->getConfig("Installation", "AmazonAccessKey");
if ( !AmazonPMFailover.empty() )
if ( !AmazonAccessKey.empty() )
{
try {
sysConfigNew->setConfig("Installation", "AmazonPMFailover", AmazonPMFailover);
sysConfigNew->setConfig("Installation", "AmazonAccessKey", AmazonAccessKey);
}
catch(...)
{
cout << "ERROR: Problem setting AmazonPMFailover in the Calpont System Configuration file" << endl;
cout << "ERROR: Problem setting AmazonAccessKey in the Calpont System Configuration file" << endl;
exit(-1);
}
}
}
catch(...)
{}
try {
string AmazonSecretKey = sysConfigOld->getConfig("Installation", "AmazonSecretKey");
if ( !AmazonAccessKey.empty() )
{
try {
sysConfigNew->setConfig("Installation", "AmazonSecretKey", AmazonSecretKey);
}
catch(...)
{
cout << "ERROR: Problem setting AmazonSecretKey in the Calpont System Configuration file" << endl;
exit(-1);
}
}