hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [04/15] incubator-hawq git commit: HAWQ-912. Skip temporary Directories checking for master/standby
Date Mon, 18 Jul 2016 10:12:28 GMT
HAWQ-912. Skip temporary Directories checking for master/standby


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/b1810879
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/b1810879
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/b1810879

Branch: refs/heads/2.0.0.0-incubating
Commit: b1810879b9818271f67d1b23a30a002619e6727f
Parents: 7a36744
Author: Wen Lin <wlin@pivotal.io>
Authored: Tue Jul 12 10:13:30 2016 +0800
Committer: rlei <rlei@pivotal.io>
Committed: Mon Jul 18 18:06:07 2016 +0800

----------------------------------------------------------------------
 src/backend/resourcemanager/resourcemanager.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b1810879/src/backend/resourcemanager/resourcemanager.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcemanager.c b/src/backend/resourcemanager/resourcemanager.c
index e511b97..96cf9ff 100644
--- a/src/backend/resourcemanager/resourcemanager.c
+++ b/src/backend/resourcemanager/resourcemanager.c
@@ -1048,14 +1048,17 @@ int  loadDynamicResourceManagerConfigure(void)
 				 DRMGlobalInstance->SegmentMemoryMB,
 				 DRMGlobalInstance->SegmentCore);
 
-    // For temporary directories
-    InitTemporaryDirs(&DRMGlobalInstance->LocalHostTempDirectories, rm_seg_tmp_dirs);
+	if ( DRMGlobalInstance->Role == START_RM_ROLE_SEGMENT )
+	{
+		// For temporary directories
+		InitTemporaryDirs(&DRMGlobalInstance->LocalHostTempDirectories, rm_seg_tmp_dirs);
 
-	DQUEUE_LOOP_BEGIN(&DRMGlobalInstance->LocalHostTempDirectories, iter, SimpStringPtr,
value)
-		elog(LOG, "HAWQ Segment RM :: Temporary directory %s", value->Str);
-	DQUEUE_LOOP_END
+		DQUEUE_LOOP_BEGIN(&DRMGlobalInstance->LocalHostTempDirectories, iter, SimpStringPtr,
value)
+			elog(LOG, "HAWQ Segment RM :: Temporary directory %s", value->Str);
+		DQUEUE_LOOP_END
 
-	checkAndBuildFailedTmpDirList();
+		checkAndBuildFailedTmpDirList();
+	}
 
 	/****** Resource enforcement GUCs begins ******/
 


Mime
View raw message