You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-20 01:42:27 +03:00
MCOL-3551 Use generic MariaDB Server paths
This branch enforces the use of generic MariaDB server paths for their binaries and data rather than custom paths. /usr/local/mariadb/columnstore is now only for columnstore with this patch. It should be noted that this removes the auto-mounting of external MariaDB UM data storage for AWS. This is also a fix for MCOL-3510 after buildbot changes are made. Also... MCOL-3552 Use columnstore.cnf to load plugins The ColumnStore plugins now load using a columnstore.cnf instead of a SQL sequence to be more in-line with MariaDB's methods.
This commit is contained in:
@@ -311,101 +311,6 @@ void mysqlSetup()
|
||||
return;
|
||||
}
|
||||
|
||||
/******************************************************************************************
|
||||
* @brief sendUpgradeRequest
|
||||
*
|
||||
* purpose: send Upgrade Request Msg to all ACTIVE UMs
|
||||
*
|
||||
*
|
||||
******************************************************************************************/
|
||||
int sendUpgradeRequest(int IserverTypeInstall, bool pmwithum)
|
||||
{
|
||||
Oam oam;
|
||||
|
||||
while (true)
|
||||
{
|
||||
try
|
||||
{
|
||||
ProcessStatus procstat;
|
||||
oam.getProcessStatus("WriteEngineServer", "pm1", procstat);
|
||||
|
||||
if ( procstat.ProcessOpState == oam::ACTIVE)
|
||||
break;
|
||||
}
|
||||
catch (const std::exception& exc)
|
||||
{
|
||||
std::cerr << exc.what() << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
SystemModuleTypeConfig systemmoduletypeconfig;
|
||||
|
||||
try
|
||||
{
|
||||
oam.getSystemConfig(systemmoduletypeconfig);
|
||||
}
|
||||
catch (const std::exception& exc)
|
||||
{
|
||||
std::cerr << exc.what() << std::endl;
|
||||
}
|
||||
|
||||
messageqcpp::ByteStream msg;
|
||||
messageqcpp::ByteStream::byte requestID = RUNUPGRADE;
|
||||
|
||||
msg << requestID;
|
||||
|
||||
int returnStatus = oam::API_SUCCESS;
|
||||
|
||||
for ( unsigned int i = 0; i < systemmoduletypeconfig.moduletypeconfig.size(); i++)
|
||||
{
|
||||
int moduleCount = systemmoduletypeconfig.moduletypeconfig[i].ModuleCount;
|
||||
|
||||
if ( moduleCount == 0)
|
||||
continue;
|
||||
|
||||
string moduleType = systemmoduletypeconfig.moduletypeconfig[i].ModuleType;
|
||||
|
||||
if ( moduleType == "um" ||
|
||||
( moduleType == "pm" && IserverTypeInstall == oam::INSTALL_COMBINE_DM_UM_PM ) ||
|
||||
( moduleType == "pm" && pmwithum ) )
|
||||
{
|
||||
|
||||
DeviceNetworkList::iterator pt = systemmoduletypeconfig.moduletypeconfig[i].ModuleNetworkList.begin();
|
||||
|
||||
for ( ; pt != systemmoduletypeconfig.moduletypeconfig[i].ModuleNetworkList.end(); pt++)
|
||||
{
|
||||
int opState = oam::ACTIVE;
|
||||
bool degraded;
|
||||
|
||||
try
|
||||
{
|
||||
oam.getModuleStatus((*pt).DeviceName, opState, degraded);
|
||||
|
||||
if (opState == oam::ACTIVE ||
|
||||
opState == oam::DEGRADED)
|
||||
{
|
||||
returnStatus = sendMsgProcMon( (*pt).DeviceName, msg, requestID, 30 );
|
||||
|
||||
if ( returnStatus != API_SUCCESS)
|
||||
{
|
||||
string tmpDir = startup::StartUp::tmpDir();
|
||||
|
||||
cout << "ERROR: Error return in running the MariaDB Columnstore Upgrade, check " + tmpDir + "/mysql_upgrade.log on " << (*pt).DeviceName << endl;
|
||||
return returnStatus;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (const std::exception& exc)
|
||||
{
|
||||
std::cerr << exc.what() << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return returnStatus;
|
||||
}
|
||||
|
||||
/******************************************************************************************
|
||||
* @brief sendReplicationRequest
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user