]> granicus.if.org Git - postgresql/commit
Fix logic bug in dsm_attach().
authorRobert Haas <rhaas@postgresql.org>
Tue, 6 May 2014 17:37:46 +0000 (13:37 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 6 May 2014 17:40:34 +0000 (13:40 -0400)
commite0124230ba2b6778671f26b06af0d8d04bcb4d1c
tree9c4ebf589629668060d32312476d198e626992de
parent4335c958154c39ef99a38dc953b3f803b13a1048
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
src/backend/storage/ipc/dsm.c