diff --git a/exemgr/main.cpp b/exemgr/main.cpp
index 47f71140c..afecb1129 100644
--- a/exemgr/main.cpp
+++ b/exemgr/main.cpp
@@ -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 != "/");
diff --git a/oam/etc/Columnstore.xml b/oam/etc/Columnstore.xml
index 3d4f4383e..f8cda9d65 100644
--- a/oam/etc/Columnstore.xml
+++ b/oam/etc/Columnstore.xml
@@ -249,9 +249,9 @@
90
80
70
-
10
0.0.0.0
@@ -269,7 +269,7 @@
-->
/rdwrscratch
/columnstore_tmp_files
- ${tmpDir}/columnstore_tmp_files
+ /tmp/columnstore_tmp_files
dm
@@ -494,8 +494,8 @@
N
- $INSTALLDIR${tmpDir}
+ files are left behind.
+ /tmp -->
Y
diff --git a/tools/configMgt/autoConfigure.cpp b/tools/configMgt/autoConfigure.cpp
index b30536d8d..5cb7a1a80 100644
--- a/tools/configMgt/autoConfigure.cpp
+++ b/tools/configMgt/autoConfigure.cpp
@@ -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 (...)