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
1 changed files with 5 additions and 5 deletions

View File

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