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

c++17 fix

This commit is contained in:
Leonid Fedorov
2021-10-26 15:02:34 +00:00
parent 56d8a33f0b
commit 1973168e03
3 changed files with 18 additions and 20 deletions

View File

@ -102,7 +102,7 @@ int main(int argc, char* argv[])
std::string configFilePathOld = std::string(MCSSYSCONFDIR) + std::string("/columnstore/Columnstore.xml");
std::string configFilePathNew = std::string(MCSSYSCONFDIR) + std::string("/columnstore/Columnstore.xml.new");
sysConfigOld = Config::makeConfig(configFilePathOld); // system version
sysConfigNew = Config::makeConfig(configFilePathNew); // released version
sysConfigNew = Config::makeConfig(configFilePathNew); // released version
}
catch (...)
{
@ -322,7 +322,7 @@ int main(int argc, char* argv[])
}
catch (...)
{ }
//setup HA IP Address
string HA_IPadd;
@ -1033,13 +1033,11 @@ int main(int argc, char* argv[])
if ( moduleName == systemParentOAMModuleName )
sysConfigNew->setConfig(dbrmMainProc, "IPAddr", moduleIPAddr);
//if ( moduleDisableState == oam::ENABLEDSTATE )
//{
DBRMworkernodeID++;
string DBRMSection = dbrmSubProc + oam.itoa(DBRMworkernodeID);
sysConfigNew->setConfig(DBRMSection, "IPAddr", moduleIPAddr);
sysConfigNew->setConfig(DBRMSection, "Module", moduleName);
//}
DBRMworkernodeID++;
string DBRMSection = dbrmSubProc + oam.itoa(DBRMworkernodeID);
sysConfigNew->setConfig(DBRMSection, "IPAddr", moduleIPAddr);
sysConfigNew->setConfig(DBRMSection, "Module", moduleName);
} //end of nicID loop
//set dbroot assigments
@ -1789,7 +1787,7 @@ int main(int argc, char* argv[])
}
catch (...)
{}
string SystemTempFileDir;
try
@ -1896,7 +1894,7 @@ int main(int argc, char* argv[])
}
catch (...)
{}
// add entries from tuning guide
@ -1926,7 +1924,7 @@ int main(int argc, char* argv[])
}
catch (...)
{}
// ExeMgr Optional settings
try
{
@ -1949,7 +1947,7 @@ int main(int argc, char* argv[])
{
sysConfigNew->setConfig("ExeMgr1", "SecondsBetweenMemChecks", secondsBetweenMemChecks);
}
maxPct = sysConfigOld->getConfig("ExeMgr1", "MaxPct");
if ( !maxPct.empty() )
{
@ -1964,7 +1962,7 @@ int main(int argc, char* argv[])
}
catch (...)
{}
// PrimProc optional parameters
// Max percent of total memory used by everything before we kill the current query
// For 5.6.1, this setting uses the same mechanism that ExeMgr uses to kill itself
@ -1979,7 +1977,7 @@ int main(int argc, char* argv[])
}
catch (...)
{}
//Write out Updated System Configuration File
sysConfigNew->write();
}