You've already forked mariadb-columnstore-engine
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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user