shm_mq: Repair breakage from previous commit.

Robert Haas <rhaas@postgresql.org>

Commit: a1480ec1d3bacb9acb08ec09f22bc25bc033115b
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-10-23T02:01:11Z
Releases: 9.6.0
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.

Files

PathChange+/−
src/backend/storage/ipc/shm_mq.c modified +4 −2