Fix plan cache core issue caused by failed add plan

This commit is contained in:
GongYusen
2024-12-10 05:45:33 +00:00
committed by ob-robot
parent 9ccd4b7fd3
commit d3a4fbd769
4 changed files with 25 additions and 4 deletions

View File

@ -128,6 +128,9 @@ int ObILibCacheNode::add_cache_obj(ObILibCacheCtx &ctx,
LOG_DEBUG("succ to add cache obj", KPC(obj));
}
}
if (OB_FAIL(ret) && ret != OB_SQL_PC_PLAN_DUPLICATE) {
is_invalid_ = true;
}
return ret;
}