diff options
Diffstat (limited to 'src/include/replication/walsender_private.h')
-rw-r--r-- | src/include/replication/walsender_private.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/include/replication/walsender_private.h b/src/include/replication/walsender_private.h index 0dd6d1cf808..99e28b2aa54 100644 --- a/src/include/replication/walsender_private.h +++ b/src/include/replication/walsender_private.h @@ -31,8 +31,7 @@ typedef enum WalSndState /* * Each walsender has a WalSnd struct in shared memory. * - * This struct is protected by 'mutex', with two exceptions: one is - * sync_standby_priority as noted below. The other exception is that some + * This struct is protected by its 'mutex' spinlock field, except that some * members are only written by the walsender process itself, and thus that * process is free to read those members without holding spinlock. pid and * needreload always require the spinlock to be held for all accesses. @@ -60,7 +59,7 @@ typedef struct WalSnd TimeOffset flushLag; TimeOffset applyLag; - /* Protects shared variables shown above. */ + /* Protects shared variables shown above (and sync_standby_priority). */ slock_t mutex; /* @@ -71,8 +70,7 @@ typedef struct WalSnd /* * The priority order of the standby managed by this WALSender, as listed - * in synchronous_standby_names, or 0 if not-listed. Protected by - * SyncRepLock. + * in synchronous_standby_names, or 0 if not-listed. */ int sync_standby_priority; |