Skip to content

Commit 672614c

Browse files
committed
Prevent logging "failed to stat file: success" for temp files
This was broken in commit bc33474, the addition of statistics counters for temp files. Reported by Thom Brown
1 parent a8b4b84 commit 672614c

File tree

1 file changed

+5
-5
lines changed
  • src/backend/storage/file

1 file changed

+5
-5
lines changed

src/backend/storage/file/fd.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,11 +1128,11 @@ FileClose(File file)
11281128
vfdP->fileName,
11291129
(unsigned long) filestats.st_size)));
11301130
}
1131-
else
1132-
{
1133-
errno = stat_errno;
1134-
elog(LOG, "could not stat file \"%s\": %m", vfdP->fileName);
1135-
}
1131+
}
1132+
else
1133+
{
1134+
errno = stat_errno;
1135+
elog(LOG, "could not stat file \"%s\": %m", vfdP->fileName);
11361136
}
11371137
}
11381138

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy