fix plan core whiling concurrently deleting plan

This commit is contained in:
obdev
2023-02-08 11:56:31 +08:00
committed by ob-robot
parent 2467fc57a7
commit e05475cdbc
3 changed files with 20 additions and 3 deletions

View File

@ -1187,6 +1187,8 @@ int ObPlanCache::ref_cache_obj(const ObCacheObjID obj_id, ObCacheObjGuard& guard
ObGlobalReqTimeService::check_req_timeinfo();
if (OB_FAIL(co_mgr_.atomic_get_alloc_cache_obj(obj_id, op))) {
SQL_PC_LOG(WARN, "failed to get update plan statistic", K(obj_id), K(ret));
} else if (NULL == op.get_value()) {
ret = OB_HASH_NOT_EXIST;
} else {
guard.cache_obj_ = op.get_value();
}