1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00
This commit is contained in:
David Hill
2018-09-21 10:40:05 -05:00
parent 455776ed49
commit 4e6e5647ef
11 changed files with 62 additions and 37 deletions

View File

@ -34,6 +34,9 @@
#include "utils_utf8.h"
#endif
#include "installdir.h"
using namespace std;
namespace idbdatafile
@ -213,23 +216,8 @@ void IDBPolicy::configIDBPolicy()
}
// Directory in which to place file buffer temporary files.
string hdfsRdwrScratch = cf->getConfig("SystemConfig", "hdfsRdwrScratch");
if ( hdfsRdwrScratch.length() == 0 )
{
string tmpPath = cf->getConfig("SystemConfig", "TempDiskPath");
if ( tmpPath.length() == 0 )
{
hdfsRdwrScratch = "/tmp/hdfsscratch";
}
else
{
hdfsRdwrScratch = tmpPath;
hdfsRdwrScratch += "/hdfsscratch";
}
}
string tmpDir = startup::StartUp::tmpDir();
string hdfsRdwrScratch = tmpDir + "/rdwrscratch";
IDBPolicy::init( idblog, bUseRdwrMemBuffer, hdfsRdwrScratch, hdfsRdwrBufferMaxSize );