[to #47185930] fix a typo in add_ps_plan & fix mysqltest

This commit is contained in:
obdev
2023-01-10 09:45:38 +00:00
committed by ob-robot
parent 1ec39791d8
commit c618e39038

View File

@ -1458,7 +1458,7 @@ int ObPlanCache::add_ps_plan(T *plan, ObPlanCacheCtx &pc_ctx)
ret = OB_ERR_UNEXPECTED;
SQL_PC_LOG(WARN, "pc_ctx.raw_sql_.ptr() is NULL, cannot add plan to plan cache by sql", K(ret));
} else {
pc_ctx.fp_result_.pc_key_.mode_ = PC_PS_MODE;
pc_ctx.fp_result_.pc_key_.mode_ = pc_ctx.mode_;
pc_ctx.fp_result_.pc_key_.name_ = pc_ctx.raw_sql_;
uint64_t old_stmt_id = pc_ctx.fp_result_.pc_key_.key_id_;
// the remote plan uses key_id is 0 to distinguish, so if key_id is 0, it cannot be set to OB_INVALID_ID