From 53fcd0bbbfeb4f33659e3db1e8fd3587136fa5ab Mon Sep 17 00:00:00 2001 From: cca5507 Date: Tue, 21 Mar 2023 11:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DmemTracker=5FReserveMemChunks?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E4=B8=AD=E6=97=A5=E5=BF=97=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E4=BC=A0=E5=8F=82=E5=8D=95=E4=BD=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/backend/utils/mmgr/memprot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/backend/utils/mmgr/memprot.cpp b/src/common/backend/utils/mmgr/memprot.cpp index 8e132234c..4c542c66b 100755 --- a/src/common/backend/utils/mmgr/memprot.cpp +++ b/src/common/backend/utils/mmgr/memprot.cpp @@ -624,8 +624,8 @@ static bool memTracker_ReserveMemChunks(int32 numChunksToReserve, bool needProte (uint32)(backendUsedMemInChunk + processMemInChunks) << (chunkSizeInBits - BITS_IN_MB); uint32 reserveMemMB = (uint32)numChunksToReserve << (chunkSizeInBits - BITS_IN_MB); write_stderr("WARNING: process memory allocation %u MB, pid %lu, " - "thread self memory %ld bytes, new %u bytes allocated, statement(%s).\n", - processMemMB, t_thrd.proc_cxt.MyProcPid, t_thrd.utils_cxt.trackedBytes, reserveMemMB, + "thread self memory %ld bytes, new %ld bytes allocated, statement(%s).\n", + processMemMB, t_thrd.proc_cxt.MyProcPid, t_thrd.utils_cxt.trackedBytes, (int64)reserveMemMB << BITS_IN_MB, (t_thrd.postgres_cxt.debug_query_string != NULL) ? t_thrd.postgres_cxt.debug_query_string : "NULL"); last_print_timestamp = current;