Ignore -4177 error during add plan to plan_cache

This commit is contained in:
GongYusen 2024-12-25 09:46:06 +00:00 committed by ob-robot
parent a19186c6bc
commit 726ca100ef

View File

@ -1214,6 +1214,10 @@ int ObPlanCache::add_cache_obj(ObILibCacheCtx &ctx,
cache_node->dec_ref_count(LC_NODE_HANDLE); //cache node dec ref in block
cache_node->dec_ref_count(LC_NODE_HANDLE); //cache node dec ref in alloc
}
} else {
if (!ctx.need_destroy_node_ && ret != OB_SQL_PC_PLAN_DUPLICATE) {
ctx.need_destroy_node_ = true;
}
}
} else { /* node exist, add cache obj to it */
LOG_TRACE("inner add cache obj", K(key), K(cache_node));