Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bc0021e

Browse files
committed
C comment: fix wording about shared memory message queue
Reported-by: Tels Discussion: https://postgr.es/m/e66e05bc55f5ce904e361ad17a3395ae.squirrel@sm.webmail.pair.com
1 parent 851a26e commit bc0021e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/storage/ipc/shm_mq.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ shm_mq_sendv(shm_mq_handle *mqh, shm_mq_iovec *iov, int iovcnt, bool nowait)
493493
return SHM_MQ_DETACHED;
494494

495495
/*
496-
* If the counterpary is known to have attached, we can read mq_receiver
496+
* If the counterparty is known to have attached, we can read mq_receiver
497497
* without acquiring the spinlock and assume it isn't NULL. Otherwise,
498498
* more caution is needed.
499499
*/
@@ -1203,9 +1203,9 @@ shm_mq_inc_bytes_read(shm_mq *mq, Size n)
12031203

12041204
/*
12051205
* Separate prior reads of mq_ring from the increment of mq_bytes_read
1206-
* which follows. Pairs with the full barrier in shm_mq_send_bytes(). We
1207-
* only need a read barrier here because the increment of mq_bytes_read is
1208-
* actually a read followed by a dependent write.
1206+
* which follows. This pairs with the full barrier in shm_mq_send_bytes().
1207+
* We only need a read barrier here because the increment of mq_bytes_read
1208+
* is actually a read followed by a dependent write.
12091209
*/
12101210
pg_read_barrier();
12111211

0 commit comments

Comments
 (0)