1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-05 15:41:14 +03:00
This commit is contained in:
David Hill
2018-09-25 14:03:00 -05:00
parent 8754476272
commit 5fa5c81b67
3 changed files with 10 additions and 13 deletions

View File

@ -1370,14 +1370,11 @@ void cleanTempDir()
{
config::Config* config = config::Config::makeConfig();
string allowDJS = config->getConfig("HashJoin", "AllowDiskBasedJoin");
string tmpPrefix = config->getConfig("HashJoin", "TempFilePath");
string tmpPrefix = startup::StartUp::tmpDir();
if (allowDJS == "N" || allowDJS == "n")
return;
if (tmpPrefix.empty())
tmpPrefix = "/tmp/infinidb";
tmpPrefix += "/";
assert(tmpPrefix != "/");

View File

@ -249,9 +249,9 @@
<ExternalCriticalThreshold>90</ExternalCriticalThreshold>
<ExternalMajorThreshold>80</ExternalMajorThreshold>
<ExternalMinorThreshold>70</ExternalMinorThreshold>
<!-- <TempDiskPath>${tmpDir}</TempDiskPath>
<WorkingDir>${tmpDir}</WorkingDir>
<TempFileDir>${tmpDir}/columnstore_tmp_files</TempFileDir>
<!-- <TempDiskPath>/tmp</TempDiskPath>
<WorkingDir>/tmp</WorkingDir>
<TempFileDir>/tmp/columnstore_tmp_files</TempFileDir>
-->
<TransactionArchivePeriod>10</TransactionArchivePeriod>
<NMSIPAddress>0.0.0.0</NMSIPAddress>
@ -269,7 +269,7 @@
-->
<hdfsRdwrScratch>/rdwrscratch</hdfsRdwrScratch> <!-- Do not set to an hdfs file path -->
<TempFileDir>/columnstore_tmp_files</TempFileDir>
<SystemTempFileDir>${tmpDir}/columnstore_tmp_files</SystemTempFileDir>
<SystemTempFileDir>/tmp/columnstore_tmp_files</SystemTempFileDir>
</SystemConfig>
<SystemModuleConfig>
<ModuleType1>dm</ModuleType1>
@ -494,8 +494,8 @@
<AllowDiskBasedJoin>N</AllowDiskBasedJoin>
<!-- Be careful modifying TempFilePath! On start, ExeMgr deletes
the entire directory and recreates it to make sure no
files are left behind. -->
<TempFilePath>$INSTALLDIR${tmpDir}</TempFilePath>
files are left behind.
<TempFilePath>/tmp</TempFilePath> -->
<TempFileCompression>Y</TempFileCompression>
</HashJoin>
<JobList>

View File

@ -48,6 +48,8 @@
#include "liboamcpp.h"
#include "configcpp.h"
#include "installdir.h"
using namespace std;
using namespace oam;
@ -2009,13 +2011,11 @@ int main(int argc, char* argv[])
if ( !AllowDiskBasedJoin.empty() )
{
TempFilePath = sysConfigOld->getConfig("HashJoin", "TempFilePath");
TempFileCompression = sysConfigOld->getConfig("HashJoin", "TempFileCompression");
try
{
sysConfigNew->setConfig("HashJoin", "AllowDiskBasedJoin", AllowDiskBasedJoin);
sysConfigNew->setConfig("HashJoin", "TempFilePath", TempFilePath);
sysConfigNew->setConfig("HashJoin", "TempFileCompression", TempFileCompression);
}
catch (...)