git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 585d0cd)
Fix comment in walsender_private.h
2022年8月22日 01:02:53 +0000 (10:02 +0900)
2022年8月22日 01:02:53 +0000 (10:02 +0900)
All the members of the stucture are protected by the spinlock WalSnd,
but a comment referred to "replyTime" and "latch" as not being in the
set of what gets protected, contrary to what walsender.c does.

Author: Bharath Rupireddy
Discussion: https://postgr.es/m/CALj2ACWE_7srye4_GZ=N=-rD=qr2WHL9GZrMnhWJOJ5RdnNS2A@mail.gmail.com


diff --git a/src/include/replication/walsender_private.h b/src/include/replication/walsender_private.h
index c14888e493fd83ae0cfb6b71ffef76a01f8746b6..9c61f92c4461813623f2ba423fbe3587b8f5ec58 100644 (file)
--- a/src/include/replication/walsender_private.h
+++ b/src/include/replication/walsender_private.h
@@ -65,7 +65,7 @@ typedef struct WalSnd
*/
int sync_standby_priority;
- /* Protects shared variables shown above. */
+ /* Protects shared variables in this structure. */
slock_t mutex;
/*
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /