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

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

Reported by Thom Brown
This commit is contained in:
Magnus Hagander 2012-01-28 10:01:17 +01:00
parent a8b4b84360
commit 672614cf21

View 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);
} }
} }