postgresql/src/backend/storage
Robert Haas 4efe26cbd3 shm_mq: Third attempt at fixing nowait behavior in shm_mq_receive.
Commit a1480ec1d3 purported to fix the
problems with commit b2ccb5f4e6, but it
didn't completely fix them.  The problem is that the checks were
performed in the wrong order, leading to a race condition.  If the
sender attached, sent a message, and detached after the receiver
called shm_mq_get_sender and before the receiver called
shm_mq_counterparty_gone, we'd incorrectly return SHM_MQ_DETACHED
before all messages were read.  Repair by reversing the order of
operations, and add a long comment explaining why this new logic is
(hopefully) correct.
2015-11-03 09:12:52 -05:00
..
buffer Allow per-tablespace effective_io_concurrency 2015-09-08 12:51:42 -03:00
file Remove special cases for ETXTBSY from new fsync'ing logic. 2015-05-29 15:11:36 -04:00
freespace Update copyright for 2015 2015-01-06 11:43:47 -05:00
ipc shm_mq: Third attempt at fixing nowait behavior in shm_mq_receive. 2015-11-03 09:12:52 -05:00
large_object Use FLEXIBLE_ARRAY_MEMBER in struct varlena. 2015-02-20 16:51:53 -05:00
lmgr Fix serialization anomalies due to race conditions on INSERT. 2015-10-31 14:43:34 -05:00
page pgindent run for 9.5 2015-05-23 21:35:49 -04:00
smgr pgindent run for 9.5 2015-05-23 21:35:49 -04:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00