Commit 672614cf authored by Magnus Hagander's avatar Magnus Hagander

Prevent logging "failed to stat file: success" for temp files

This was broken in commit bc334748, the
addition of statistics counters for temp files.

Reported by Thom Brown
parent a8b4b843
...@@ -1128,11 +1128,11 @@ FileClose(File file) ...@@ -1128,11 +1128,11 @@ FileClose(File file)
vfdP->fileName, vfdP->fileName,
(unsigned long) filestats.st_size))); (unsigned long) filestats.st_size)));
} }
else }
{ else
errno = stat_errno; {
elog(LOG, "could not stat file \"%s\": %m", vfdP->fileName); errno = stat_errno;
} elog(LOG, "could not stat file \"%s\": %m", vfdP->fileName);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment