]> granicus.if.org Git - postgresql/commit
Fix incorrect close() call in dsm_impl_mmap().
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 10 Apr 2018 22:34:40 +0000 (18:34 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 10 Apr 2018 22:34:54 +0000 (18:34 -0400)
commit231bcd0803eb91c526d4e7522c993fa5ed71bd45
treed1e64ecf4133a31f26e67bde53d1241c164a3718
parent074251db6740a9abfbd922d13d39b27c4f338a20
Fix incorrect close() call in dsm_impl_mmap().

One improbable error-exit path in this function used close() where
it should have used CloseTransientFile().  This is unlikely to be
hit in the field, and I think the consequences wouldn't be awful
(just an elog(LOG) bleat later).  But a bug is a bug, so back-patch
to 9.4 where this code came in.

Pan Bian

Discussion: https://postgr.es/m/152056616579.4966.583293218357089052@wrigleys.postgresql.org
src/backend/storage/ipc/dsm_impl.c