提交 3f3b0e62 编写于 作者: D Daniel Gustafsson

Remove dead codepath to improve readability

There is no way we to reach PSETOP_NONE with the current coding, but
reading the code doesn't make that clear. Rewrite to make the intent
clearer.

Per gripe from Coverity.
上级 343b1149
......@@ -53,7 +53,6 @@ GpSetOpType choose_setop_type(List *planlist)
bool ok_general = TRUE;
bool ok_partitioned = TRUE;
bool ok_replicated = TRUE;
bool ok_single_qd = TRUE;
bool ok_single_qe = TRUE;
bool has_partitioned = FALSE;
......@@ -100,10 +99,8 @@ GpSetOpType choose_setop_type(List *planlist)
return PSETOP_PARALLEL_PARTITIONED;
else if ( ok_single_qe )
return PSETOP_SEQUENTIAL_QE;
else if ( ok_single_qd )
return PSETOP_SEQUENTIAL_QD;
return PSETOP_NONE;
return PSETOP_SEQUENTIAL_QD;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册