You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by sh...@apache.org on 2016/03/21 23:01:31 UTC
[02/50] incubator-hawq git commit: HAWQ-523. Remove dead code in
executormgr
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/HAWQ-459
Commit: 29a9beb1df109815deebf3750c23e2386fa5377e
Parents: b3e2add
Author: Lili Ma <lm...@pivotal.io>
Authored: Mon Mar 14 11:36:19 2016 +0800
Committer: Lili Ma <lm...@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;