1
0
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:
Magnus Hagander
2012-01-28 10:01:17 +01:00
parent a8b4b84360
commit 672614cf21

View File

@@ -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)