Improve header comment for WaitLSNSetLatches()
authorAlexander Korotkov <akorotkov@postgresql.org>
Sat, 10 Aug 2024 18:43:09 +0000 (21:43 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sat, 10 Aug 2024 18:43:09 +0000 (21:43 +0300)
Reflect the fact that we remove waiters from the heap, not just set their
latches.

src/backend/commands/waitlsn.c

index deefbd458c081ca826b966101d4982a4af728182..d9cf9e7d75e03bd91771cd40aa2785866fdbc38f 100644 (file)
@@ -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)