projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
867d396
)
Improve header comment for WaitLSNSetLatches()
author
Alexander Korotkov
<
[email protected]
>
Sat, 10 Aug 2024 18:43:09 +0000
(21:43 +0300)
committer
Alexander Korotkov
<
[email protected]
>
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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/waitlsn.c
b/src/backend/commands/waitlsn.c
index deefbd458c081ca826b966101d4982a4af728182..d9cf9e7d75e03bd91771cd40aa2785866fdbc38f 100644
(file)
--- 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)