shm_mq: Repair breakage from previous commit.
authorRobert Haas <rhaas@postgresql.org>
Fri, 23 Oct 2015 02:01:11 +0000 (22:01 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 23 Oct 2015 02:01:11 +0000 (22:01 -0400)
commita1480ec1d3bacb9acb08ec09f22bc25bc033115b
treeb581101470cbf98fbc2912f028a9428dd07e8bb2
parent872101bede26444324059ba0f27c3b1c8b8140f6
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.
src/backend/storage/ipc/shm_mq.c