hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From y...@apache.org
Subject incubator-hawq git commit: HAWQ-527. Remove dead code of generateResourceRefreshHeartBeat()
Date Mon, 14 Mar 2016 05:49:05 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master fa993ac9f -> b3e2add6d


HAWQ-527. Remove dead code of generateResourceRefreshHeartBeat()


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

Branch: refs/heads/master
Commit: b3e2add6d346ecde3c03307f27fcdcf006c1fa70
Parents: fa993ac
Author: YI JIN <yjin@pivotal.io>
Authored: Mon Mar 14 16:48:55 2016 +1100
Committer: YI JIN <yjin@pivotal.io>
Committed: Mon Mar 14 16:48:55 2016 +1100

----------------------------------------------------------------------
 src/backend/resourcemanager/communication/rmcomm_QD2RM.c | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b3e2add6/src/backend/resourcemanager/communication/rmcomm_QD2RM.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/communication/rmcomm_QD2RM.c b/src/backend/resourcemanager/communication/rmcomm_QD2RM.c
index a645dd4..d601383 100644
--- a/src/backend/resourcemanager/communication/rmcomm_QD2RM.c
+++ b/src/backend/resourcemanager/communication/rmcomm_QD2RM.c
@@ -1519,12 +1519,6 @@ void *generateResourceRefreshHeartBeat(void *arg)
 		pg_usleep(rm_session_lease_heartbeat_interval * 1000000L);
 	}
 
-	if ( fd >= 0 )
-	{
-		close(fd);
-		fd = -1;
-	}
-
 	freeHeartBeatThreadArg(&tharg);
 	write_log("generateResourceRefreshHeartBeat exits.");
 	return 0;


Mime
View raw message