]> git.ipfire.org Git - thirdparty/postgresql.git/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:03:58 +0000 (22:03 -0400)
commit44390e30f8531906ed142336f84f172b93073038
tree1a299ab88c657f8766b767efa96bca93686ae302
parent17b07afae341c05f2dae1b6c588df6b267e699f2
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