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 <[email protected]> Authored: Mon Mar 14 11:36:19 2016 +0800 Committer: Lili Ma <[email protected]> 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;
