diff options
Diffstat (limited to 'src/include/commands/waitlsn.h')
-rw-r--r-- | src/include/commands/waitlsn.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/commands/waitlsn.h b/src/include/commands/waitlsn.h index b3d9eed64d8..da17b8be6f9 100644 --- a/src/include/commands/waitlsn.h +++ b/src/include/commands/waitlsn.h @@ -49,7 +49,7 @@ typedef struct WaitLSNState /* * The minimum LSN value some process is waiting for. Used for the * fast-path checking if we need to wake up any waiters after replaying a - * WAL record. + * WAL record. Could be read lock-less. Update protected by WaitLSNLock. */ pg_atomic_uint64 minWaitedLSN; @@ -59,7 +59,10 @@ typedef struct WaitLSNState */ pairingheap waitersHeap; - /* An array with per-process information, indexed by the process number */ + /* + * An array with per-process information, indexed by the process number. + * Protected by WaitLSNLock. + */ WaitLSNProcInfo procInfos[FLEXIBLE_ARRAY_MEMBER]; } WaitLSNState; |