[CP] spm only accepts successfully executed plans as baseline

This commit is contained in:
obdev
2022-12-15 13:11:45 +00:00
committed by ob-robot
parent 2ff985ffdd
commit c91594425b
7 changed files with 21 additions and 21 deletions

View File

@ -1200,6 +1200,7 @@ OB_INLINE int ObMPQuery::response_result(ObMySQLResultSet &result,
CHECK_COMPATIBILITY_MODE(&session);
bool need_trans_cb = result.need_end_trans_callback() && (!force_sync_resp);
// 通过判断 plan 是否为 null 来确定是 plan 还是 cmd
// 针对 plan 和 cmd 分开处理,逻辑会较为清晰。
if (OB_LIKELY(NULL != result.get_physical_plan())) {