]> granicus.if.org Git - postgresql/commit
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:04:05 +0000 (22:04 -0400)
commit5eca6cf99411bfd47f43fc742552c9a2ae459bc8
treee9754cdec1c14776b8b5c44ef996797e690a533d
parent87abcb4ebd48f5d8f7244236f8839854c1861537
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