Skip to content

Commit 3ac3ec5

Browse files
committed
Improve header comment for WaitLSNSetLatches()
Reflect the fact that we remove waiters from the heap, not just set their latches.
1 parent 867d396 commit 3ac3ec5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/commands/waitlsn.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ deleteLSNWaiter(void)
147147
}
148148

149149
/*
150-
* Set latches of LSN waiters whose LSN has been replayed. Set latches of all
151-
* LSN waiters when InvalidXLogRecPtr is given.
150+
* Remove waiters whose LSN has been replayed from the heap and set their
151+
* latches. If InvalidXLogRecPtr is given, remove all waiters from the heap
152+
* and set latches for all waiters.
152153
*/
153154
void
154155
WaitLSNSetLatches(XLogRecPtr currentLSN)

0 commit comments

Comments
 (0)