From 91ab445e4ef5fa580b414697a5718c9ccef9c592 Mon Sep 17 00:00:00 2001 From: chenxiaobin19 <1025221611@qq.com> Date: Thu, 26 Jun 2025 16:30:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=9B=BAGSCMemThresholdCheck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/backend/utils/cache/knl_globalsysdbcache.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/backend/utils/cache/knl_globalsysdbcache.cpp b/src/common/backend/utils/cache/knl_globalsysdbcache.cpp index e39cf3e78..e1883e523 100644 --- a/src/common/backend/utils/cache/knl_globalsysdbcache.cpp +++ b/src/common/backend/utils/cache/knl_globalsysdbcache.cpp @@ -416,6 +416,10 @@ void GlobalSysDBCache::GSCMemThresholdCheck() return; } + if (unlikely(t_thrd.utils_cxt.CurrentResourceOwner == NULL)) { + return; + } + /* only one clean is enough */ ResourceOwnerEnlargeGlobalIsExclusive(LOCAL_SYSDB_RESOWNER); if (!atomic_compare_exchange_u32(&m_is_memorychecking, 0, 1)) {