From 11b4e2495967e875de6fb7fee050c772dad47594 Mon Sep 17 00:00:00 2001 From: z00793368 Date: Fri, 30 Dec 2022 09:44:10 +0800 Subject: [PATCH] add log --- src/gausskernel/process/postmaster/pgstat.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gausskernel/process/postmaster/pgstat.cpp b/src/gausskernel/process/postmaster/pgstat.cpp index 3e9443c70..e757835da 100644 --- a/src/gausskernel/process/postmaster/pgstat.cpp +++ b/src/gausskernel/process/postmaster/pgstat.cpp @@ -8467,6 +8467,9 @@ static void pgstat_recv_filestat(PgStat_MsgFile* msg, int len) } } fileStatCount = minLocation; + ereport(DEBUG1, (errmodule(MOD_INSTR), + errmsg("the latest filenum is %d, update is %ld", + fileStatCount, pgStatFileArray[fileStatCount].time))); } entry = (PgStat_FileEntry*)&pgStatFileArray[fileStatCount];