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

A little modding to get oam to play nice with storagemanager wrt

BRM files.
This commit is contained in:
Patrick LeBlanc
2019-06-13 08:18:21 -05:00
parent 42b6776598
commit a79b3131b5

View File

@ -2567,7 +2567,7 @@ pid_t ProcessMonitor::startProcess(string processModuleType, string processName,
system(cmd.c_str());
// if Non Parent OAM Module, get the dbmr data from Parent OAM Module
if ( !gOAMParentModuleFlag && !HDFS )
if ( !gOAMParentModuleFlag && !HDFS && DBRootStorageType != "storagemanager")
{
//create temp dbrm directory
@ -2673,7 +2673,7 @@ pid_t ProcessMonitor::startProcess(string processModuleType, string processName,
}
// now delete the dbrm data from local disk
if ( !gOAMParentModuleFlag && !HDFS && DataRedundancyConfig == "n")
if ( !gOAMParentModuleFlag && !HDFS && DBRootStorageType != "storagemanager" && DataRedundancyConfig == "n")
{
string cmd = "rm -f " + DBRMDir + "/*";
system(cmd.c_str());