fix generating nonstreaming plan for skip locked for update

This commit is contained in:
hy-guo
2024-01-11 04:47:49 +00:00
committed by ob-robot
parent 4b1d2e6644
commit 2514449c2e
3 changed files with 11 additions and 8 deletions

View File

@ -13360,8 +13360,8 @@ int ObLogPlan::create_for_update_plan(ObLogicalOperator *&top,
skip_locked,
lock_rownum))) {
LOG_WARN("failed to allocate delete as top", K(ret));
} else {
optimizer_context_.set_for_update();
} else if (!skip_locked) {
optimizer_context_.set_no_skip_for_update();
}
return ret;
}