From 2ac8c7df7ccb6b4352561c2dde2e94a60d53394b Mon Sep 17 00:00:00 2001 From: z00793368 Date: Tue, 13 Dec 2022 11:11:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B5=8B=E5=80=BC=E5=86=85?= =?UTF-8?q?=E5=AD=98=E6=BA=A2=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/process/postmaster/pgstat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/process/postmaster/pgstat.cpp b/src/gausskernel/process/postmaster/pgstat.cpp index 063c7282f..2edfd4cd5 100644 --- a/src/gausskernel/process/postmaster/pgstat.cpp +++ b/src/gausskernel/process/postmaster/pgstat.cpp @@ -8456,7 +8456,7 @@ static void pgstat_recv_filestat(PgStat_MsgFile* msg, int len) if (i == NUM_FILES || entry->fn == InvalidOid) { LWLockAcquire(FileStatLock, LW_EXCLUSIVE); if (i == NUM_FILES) { - TimestampTz longestTime = DBL_MAX; + TimestampTz longestTime = GetCurrentTimestamp(); int minLocation = 0; for (int j = 0; j < NUM_FILES; j++) { entry = (PgStat_FileEntry*)&pgStatFileArray[j];