Fix logic bug in dsm_attach().

Robert Haas <rhaas@postgresql.org>

Commit: e0124230ba2b6778671f26b06af0d8d04bcb4d1c
Author: Robert Haas <rhaas@postgresql.org>
Date: 2014-05-06T17:40:34Z
Releases: 9.4.0
Fix logic bug in dsm_attach().

The previous coding would potentially cause attaching to segment A to
fail if segment B was at the same time in the process of going away.

Andres Freund, with a comment tweak by me

Files

PathChange+/−
src/backend/storage/ipc/dsm.c modified +8 −7