hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lil...@apache.org
Subject incubator-hawq git commit: HAWQ-523. Remove dead code in executormgr
Date Mon, 14 Mar 2016 06:00:31 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master b3e2add6d -> 29a9beb1d


HAWQ-523. Remove dead code in executormgr


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

Branch: refs/heads/master
Commit: 29a9beb1df109815deebf3750c23e2386fa5377e
Parents: b3e2add
Author: Lili Ma <lma@pivotal.io>
Authored: Mon Mar 14 11:36:19 2016 +0800
Committer: Lili Ma <lma@pivotal.io>
Committed: Mon Mar 14 14:00:14 2016 +0800

----------------------------------------------------------------------
 src/backend/cdb/executormgr.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/29a9beb1/src/backend/cdb/executormgr.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/executormgr.c b/src/backend/cdb/executormgr.c
index 4d1351d..88dd32f 100644
--- a/src/backend/cdb/executormgr.c
+++ b/src/backend/cdb/executormgr.c
@@ -202,13 +202,9 @@ executormgr_bind_executor_task(struct DispatchData *data,
 							struct DispatchTask *task,
 							struct DispatchSlice *slice)
 {
-	executor->state = QES_UNINIT;
-	if (desc == NULL)
-	{
-		executor->health = QEH_ERROR;
-		return false;
-	}
+  Assert(desc != NULL);
 
+  executor->state = QES_UNINIT;
 	executor->desc = desc;
 	executor->state = QES_DISPATCHABLE;
 	executor->health = QEH_NA;


Mime
View raw message