Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc0021e

Browse files
committed
C comment: fix wording about shared memory message queue
Reported-by: TelsDiscussion:https://postgr.es/m/e66e05bc55f5ce904e361ad17a3395ae.squirrel@sm.webmail.pair.com
1 parent851a26e commitbc0021e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/storage/ipc/shm_mq.c

Lines changed: 4 additions & 4 deletions
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
returnSHM_MQ_DETACHED;
494494

495495
/*
496-
* If thecounterpary is known to have attached, we can read mq_receiver
496+
* If thecounterparty 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.Pairswith 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 pairswith the full barrier in shm_mq_send_bytes().
1207+
*Weonly need a read barrier here because the increment of mq_bytes_read
1208+
*isactually a read followed by a dependent write.
12091209
*/
12101210
pg_read_barrier();
12111211

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp