fix bug: plan cache core is caused by the plan cache diagnostic view.

This commit is contained in:
obdev
2024-02-08 00:17:48 +00:00
committed by ob-robot
parent 18c5dd94a0
commit f6090d6b30
8 changed files with 56 additions and 9 deletions

View File

@ -132,7 +132,7 @@ void ObLCObjectManager::common_free(ObILibCacheObject *cache_obj,
if (OB_ISNULL(cache_obj)) {
// do nothing
} else {
if (!cache_obj->added_lc()) {
if (ref_handle != PC_DIAG_HANDLE && !cache_obj->added_lc()) {
cache_obj->set_logical_del_time(ObTimeUtility::current_monotonic_time());
LOG_WARN("set logical del time", K(cache_obj->get_logical_del_time()),
K(cache_obj->added_lc()),