Remove have_gather_plan_node.

This commit is contained in:
TotaJ
2020-11-10 14:08:15 +08:00
parent 35f6cc72a5
commit cef0933c9b
8 changed files with 98 additions and 46 deletions

View File

@ -2029,7 +2029,7 @@ static void ExecutePlan(EState *estate, PlanState *planstate, bool use_parallel_
slot = NULL;
}
/******************************* MOT LLVM *************************************/
else if (!IS_PGXC_COORDINATOR && JitExec::IsMotCodegenEnabled() && mot_jit_context) {
else if (mot_jit_context && !IS_PGXC_COORDINATOR && JitExec::IsMotCodegenEnabled()) {
int scan_ended = 0;
if (!mot_finished_execution) {
// previous iteration has not signaled end of scan