Remove is_valid in ps cache and plan cache.

This commit is contained in:
obdev
2022-12-09 03:40:57 +00:00
committed by ob-robot
parent 9b8edfcf0c
commit 59df2a1a27
9 changed files with 6 additions and 29 deletions

View File

@ -886,7 +886,7 @@ ObPsCache *ObSQLSessionInfo::get_ps_cache()
{
if (OB_ISNULL(plan_cache_manager_)) {
LOG_WARN("invalid status", K_(ps_cache), K_(plan_cache_manager));
} else if (OB_NOT_NULL(ps_cache_) && ps_cache_->is_valid()) {
} else if (OB_NOT_NULL(ps_cache_)) {
//do nothing
} else {
int ret = OB_SUCCESS;
@ -906,7 +906,7 @@ ObPsCache *ObSQLSessionInfo::get_ps_cache()
ps_cache_ = plan_cache_manager_->get_or_create_ps_cache(tenant_id,
pc_mem_conf);
if (OB_ISNULL(ps_cache_)) {
LOG_WARN("failed to get ps pl an cache");
LOG_WARN("failed to get ps plan cache");
} else {
ps_session_info_allocator_.set_attr(mem_attr);
}