Fix incorrect close() call in dsm_impl_mmap().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 494f3cb5bbdae3d75b0100559a8a05020e8338ff
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-04-10T22:34:40Z
Releases: 9.6.9
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

Files

PathChange+/−
src/backend/storage/ipc/dsm_impl.c modified +1 −1

Discussion