fix memory leak when unit migrate or del tenant happens

This commit is contained in:
jh0
2021-07-27 15:39:13 +08:00
committed by wangzelin.wzl
parent 85d7d1e6f8
commit 9d77e24a32
8 changed files with 29 additions and 5 deletions

View File

@ -611,7 +611,7 @@ void ObSQLSessionInfo::get_session_priv_info(share::schema::ObSessionPrivInfo& s
ObPlanCache* ObSQLSessionInfo::get_plan_cache()
{
if (OB_LIKELY(NULL != plan_cache_manager_)) {
if (OB_NOT_NULL(plan_cache_) && plan_cache_->is_valid()) {
if (OB_NOT_NULL(plan_cache_)) {
// do nothing
} else {
// release old plancache and get new