pgsql: shm_mq: Repair breakage from previous commit.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: shm_mq: Repair breakage from previous commit.
Date: 2015-10-23 02:08:06
Message-ID: E1ZpRm2-0008JB-FM@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

shm_mq: Repair breakage from previous commit.

If the counterparty writes some data into the queue and then detaches,
it's wrong to return SHM_MQ_DETACHED right away. If we do that, we
fail to read whatever was written.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/44390e30f8531906ed142336f84f172b93073038

Modified Files
--------------
src/backend/storage/ipc/shm_mq.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2015-10-27 16:22:17 pgsql: Measure string lengths only once
Previous Message Robert Haas 2015-10-22 21:06:04 pgsql: Add two missing cases to ATWrongRelkindError.