]> granicus.if.org Git - postgresql/commit
Avoid leaking FDs after an fsync failure.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 2 Oct 2016 16:33:46 +0000 (12:33 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 2 Oct 2016 16:33:46 +0000 (12:33 -0400)
commit728ceba938dfadb204a4854bb76ae3b11b635401
tree2a161db8a308ad8f2e95abae11b992795b32f000
parent3b90e38c5d592ea8ec8236287dd5c749fc041728
Avoid leaking FDs after an fsync failure.

Fixes errors introduced in commit bc34223bc, as detected by Coverity.

In passing, report ENOSPC for a short write while padding a new wal file in
open_walfile, make certain that close_walfile closes walfile in all cases,
and improve a couple of comments.

Michael Paquier and Tom Lane
src/bin/pg_basebackup/receivelog.c
src/common/file_utils.c