You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-3608 Add module installer file copy
Adds back some stuff that was remove distributed that didn't work properly for non-distributed. Also use /var/lib/columnstore/local for module file as OAM intended.
This commit is contained in:
@ -284,7 +284,7 @@ int OamCache::getLocalPMId()
|
||||
{
|
||||
mutex::scoped_lock lk(cacheLock);
|
||||
|
||||
// This comes from the file /etc/columnstore/module, not from the xml.
|
||||
// This comes from the file /var/lib/columnstore/local/module, not from the xml.
|
||||
// Thus, it's not refreshed during checkReload().
|
||||
if (mLocalPMId > 0)
|
||||
{
|
||||
@ -293,7 +293,7 @@ int OamCache::getLocalPMId()
|
||||
|
||||
string localModule;
|
||||
string moduleType;
|
||||
string fileName = "/etc/columnstore/module";
|
||||
string fileName = "/var/lib/columnstore/local/module";
|
||||
ifstream moduleFile (fileName.c_str());
|
||||
char line[400];
|
||||
|
||||
@ -337,7 +337,7 @@ string OamCache::getModuleName()
|
||||
if (!moduleName.empty())
|
||||
return moduleName;
|
||||
|
||||
string fileName = "/etc/columnstore/module";
|
||||
string fileName = "/var/lib/columnstore/local/module";
|
||||
ifstream moduleFile(fileName.c_str());
|
||||
getline(moduleFile, moduleName);
|
||||
moduleFile.close();
|
||||
|
Reference in New Issue
Block a user