pgsql: Fix incorrect close() call in dsm_impl_mmap(). - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix incorrect close() call in dsm_impl_mmap().
Date
Msg-id E1f61r7-00015k-BD@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f530af8fc931b4063f1a9f4239908c7110666848

Modified Files
--------------
src/backend/storage/ipc/dsm_impl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: pgsql: Optimize btree insertions for common case of increasing values
Next
From: Andrew Dunstan
Date:
Subject: pgsql: minor comment fixes in nbtinsert.c