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:
parent
a8b4b84360
commit
672614cf21
@ -1128,11 +1128,11 @@ FileClose(File file)
|
||||
vfdP->fileName,
|
||||
(unsigned long) filestats.st_size)));
|
||||
}
|
||||
else
|
||||
{
|
||||
errno = stat_errno;
|
||||
elog(LOG, "could not stat file \"%s\": %m", vfdP->fileName);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errno = stat_errno;
|
||||
elog(LOG, "could not stat file \"%s\": %m", vfdP->fileName);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user