diff options
author | Alexander Korotkov | 2024-08-10 18:43:09 +0000 |
---|---|---|
committer | Alexander Korotkov | 2024-08-10 18:43:09 +0000 |
commit | 3ac3ec580c6f4f991d32252814e4b04c0e903a41 (patch) | |
tree | 771436c23a1a47e18143a8d5c9cba2e862a9c951 | |
parent | 867d396ccd2a7f0ce55e1fa7ebda00bc8c81147b (diff) |
Improve header comment for WaitLSNSetLatches()
Reflect the fact that we remove waiters from the heap, not just set their
latches.
-rw-r--r-- | src/backend/commands/waitlsn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/commands/waitlsn.c b/src/backend/commands/waitlsn.c index deefbd458c0..d9cf9e7d75e 100644 --- a/src/backend/commands/waitlsn.c +++ b/src/backend/commands/waitlsn.c @@ -147,8 +147,9 @@ deleteLSNWaiter(void) } /* - * Set latches of LSN waiters whose LSN has been replayed. Set latches of all - * LSN waiters when InvalidXLogRecPtr is given. + * Remove waiters whose LSN has been replayed from the heap and set their + * latches. If InvalidXLogRecPtr is given, remove all waiters from the heap + * and set latches for all waiters. */ void WaitLSNSetLatches(XLogRecPtr currentLSN) |