pgsql: Fix logic bug in dsm_attach().

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix logic bug in dsm_attach().
Date: 2014-05-06 17:44:47
Message-ID: E1WhjQ7-0001lt-3R@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e0124230ba2b6778671f26b06af0d8d04bcb4d1c

Modified Files
--------------
src/backend/storage/ipc/dsm.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Kevin Grittner 2014-05-06 19:04:12 Re: [COMMITTERS] pgsql: pgindent run for 9.4
Previous Message Tom Lane 2014-05-06 17:32:02 Re: pgsql: Again fix initialization of auto-tuned effective_cache_size.