From e5b88f845c1d54b123a7376f9287bcadd363a15c Mon Sep 17 00:00:00 2001 From: chenxiaobin19 <1025221611@qq.com> Date: Mon, 5 Jun 2023 14:32:35 +0800 Subject: [PATCH] =?UTF-8?q?t=5Fthrd.utils=5Fcxt.ExecutorMemoryTrack?= =?UTF-8?q?=E8=B5=8B=E5=80=BC=E5=89=8D=E5=88=A4=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/runtime/executor/execMain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gausskernel/runtime/executor/execMain.cpp b/src/gausskernel/runtime/executor/execMain.cpp index 494b55e8e..5390a744a 100755 --- a/src/gausskernel/runtime/executor/execMain.cpp +++ b/src/gausskernel/runtime/executor/execMain.cpp @@ -264,7 +264,8 @@ void standard_ExecutorStart(QueryDesc *queryDesc, int eflags) queryDesc->estate = estate; /* record the init memory track of the executor engine */ - if (u_sess->attr.attr_memory.memory_tracking_mode > MEMORY_TRACKING_NONE) { + if (u_sess->attr.attr_memory.memory_tracking_mode > MEMORY_TRACKING_NONE && + t_thrd.utils_cxt.ExecutorMemoryTrack == NULL) { #ifndef ENABLE_MEMORY_CHECK t_thrd.utils_cxt.ExecutorMemoryTrack = ((AllocSet)(estate->es_query_cxt))->track; #else