mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
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:
@@ -1128,13 +1128,13 @@ FileClose(File file)
|
|||||||
vfdP->fileName,
|
vfdP->fileName,
|
||||||
(unsigned long) filestats.st_size)));
|
(unsigned long) filestats.st_size)));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
errno = stat_errno;
|
errno = stat_errno;
|
||||||
elog(LOG, "could not stat file \"%s\": %m", vfdP->fileName);
|
elog(LOG, "could not stat file \"%s\": %m", vfdP->fileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* Unregister it from the resource owner */
|
/* Unregister it from the resource owner */
|
||||||
if (vfdP->resowner)
|
if (vfdP->resowner)
|
||||||
|
Reference in New Issue
Block a user