From a02d3b37e23a4f97e4cfd4dc868efeee5ecb6360 Mon Sep 17 00:00:00 2001 From: Mijamind Date: Thu, 7 Dec 2023 21:01:54 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=B5=84=E6=BA=90=E6=B1=A0=E5=8C=96?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8Dmdcache=E5=A4=B1=E6=95=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/process/threadpool/knl_session.cpp | 3 +++ src/include/knl/knl_session.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/gausskernel/process/threadpool/knl_session.cpp b/src/gausskernel/process/threadpool/knl_session.cpp index 2a22964f8..f7185179f 100755 --- a/src/gausskernel/process/threadpool/knl_session.cpp +++ b/src/gausskernel/process/threadpool/knl_session.cpp @@ -1416,6 +1416,9 @@ static void knl_u_spq_init(knl_u_spq_context* spq_cxt) spq_cxt->spq_opt_initialized = false; spq_cxt->remoteQuerys = NIL; spq_cxt->snapshot = (SnapshotData*)palloc0(sizeof(SnapshotData)); + spq_cxt->mdcache_invalidation_counter_registered = false; + spq_cxt->mdcache_invalidation_counter = 0; + spq_cxt->last_mdcache_invalidation_counter = 0; } #endif diff --git a/src/include/knl/knl_session.h b/src/include/knl/knl_session.h index 919c17a54..8e81d47d2 100644 --- a/src/include/knl/knl_session.h +++ b/src/include/knl/knl_session.h @@ -2751,6 +2751,9 @@ typedef struct knl_u_spq_context { spqos::CWorkerPoolManager* m_worker_pool_manager; /* mdcache */ spqos::CCache *m_pcache; + bool mdcache_invalidation_counter_registered; + int64 mdcache_invalidation_counter; + int64 last_mdcache_invalidation_counter; /* cache factory */ spqos::CCacheFactory* m_factory; spqos::CMessageRepository *m_repository;