Commit bc0021ef authored by Bruce Momjian's avatar Bruce Momjian

C comment: fix wording about shared memory message queue

Reported-by: Tels

Discussion: https://postgr.es/m/e66e05bc55f5ce904e361ad17a3395ae.squirrel@sm.webmail.pair.com
parent 851a26e2
...@@ -493,7 +493,7 @@ shm_mq_sendv(shm_mq_handle *mqh, shm_mq_iovec *iov, int iovcnt, bool nowait) ...@@ -493,7 +493,7 @@ shm_mq_sendv(shm_mq_handle *mqh, shm_mq_iovec *iov, int iovcnt, bool nowait)
return SHM_MQ_DETACHED; return SHM_MQ_DETACHED;
/* /*
* If the counterpary is known to have attached, we can read mq_receiver * If the counterparty is known to have attached, we can read mq_receiver
* without acquiring the spinlock and assume it isn't NULL. Otherwise, * without acquiring the spinlock and assume it isn't NULL. Otherwise,
* more caution is needed. * more caution is needed.
*/ */
...@@ -1203,9 +1203,9 @@ shm_mq_inc_bytes_read(shm_mq *mq, Size n) ...@@ -1203,9 +1203,9 @@ shm_mq_inc_bytes_read(shm_mq *mq, Size n)
/* /*
* Separate prior reads of mq_ring from the increment of mq_bytes_read * Separate prior reads of mq_ring from the increment of mq_bytes_read
* which follows. Pairs with the full barrier in shm_mq_send_bytes(). We * which follows. This pairs with the full barrier in shm_mq_send_bytes().
* only need a read barrier here because the increment of mq_bytes_read is * We only need a read barrier here because the increment of mq_bytes_read
* actually a read followed by a dependent write. * is actually a read followed by a dependent write.
*/ */
pg_read_barrier(); pg_read_barrier();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment