提交 52a81d28 编写于 作者: L lf0 提交者: wangzelin.wzl

Fix ps cache is invalid when calling cache_evict_all_ps

上级 c9bd25e7
......@@ -581,8 +581,8 @@ int ObPlanCacheManager::revert_ps_cache(const uint64_t& tenant_id)
if (OB_SUCCESS == tmp_ret && NULL != ppc) {
SQL_PC_LOG(INFO, "plan_cache_manager revert ps plan cache", "pc ref_count", ppc->get_ref_count(), K(tenant_id));
// cancel scheduled task
ppc->set_valid(false);
ppc->dec_ref_count();
ppc->set_valid(false);
} else if (OB_HASH_NOT_EXIST == tmp_ret) { // maybe erase by other thread
SQL_PC_LOG(INFO, "PS Plan Cache not exist", K(tenant_id));
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册