Skip to content
Snippets Groups Projects
Commit 672614cf authored by Magnus Hagander's avatar Magnus Hagander
Browse files

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

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

Reported by Thom Brown
parent a8b4b843
Branches
Tags
No related merge requests found
......@@ -1128,13 +1128,13 @@ FileClose(File file)
vfdP->fileName,
(unsigned long) filestats.st_size)));
}
}
else
{
errno = stat_errno;
elog(LOG, "could not stat file \"%s\": %m", vfdP->fileName);
}
}
}
/* Unregister it from the resource owner */
if (vfdP->resowner)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment