1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-24 14:20:59 +03:00
This commit is contained in:
David Hill
2018-09-21 11:23:43 -05:00
parent 4e6e5647ef
commit 81e35e35eb
9 changed files with 41 additions and 29 deletions

View File

@@ -31,6 +31,10 @@ using namespace boost;
#include "idbregistry.h"
#endif
#include "installdir.h"
#include "configcpp.h"
using namespace config;
namespace startup
{
@@ -92,6 +96,18 @@ const string StartUp::tmpDir()
*fTmpDirp = cfStr;
#else
Config* sysConfig = Config::makeConfig();
string TempFileDir;
try
{
TempFileDir = sysConfig->getConfig("SystemConfig", "TempFileDir");
}
catch (...)
{}
fTmpDirp = new string("/tmp");
//See if we can figure out the tmp dir in Linux...
//1. env var COLUMNSTORE_INSTALL_DIR
@@ -108,6 +124,8 @@ const string StartUp::tmpDir()
*fTmpDirp = homedir + "/.tmp";
}
*fTmpDirp = *fTmpDirp + TempFileDir;
#endif