修复赋值内存溢出问题

This commit is contained in:
z00793368
2022-12-13 11:11:27 +08:00
parent f5866a88ff
commit 2ac8c7df7c

View File

@ -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];