pgsql: Clarify LSN waiter cleanup after wakeup

Started by Alexander Korotkov3 months ago1 messagescommitters
Jump to latest
#1Alexander Korotkov
akorotkov@postgresql.org

Clarify LSN waiter cleanup after wakeup

WaitLSNWakeup() can be called by several processes, not only the startup
process. Update the cleanup comment to explain that another process may
remove the waiter before waking it and that inHeap prevents double
deletion.

Author: Xuneng Zhou <xunengzhou@gmail.com>
Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>
Discussion: /messages/by-id/CABPTF7UtW_cAa=Qh4RDfKiUqu3pJJE22ai9tbWJVERbeRyssLw@mail.gmail.com
Backpatch-through: 19

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f2d6392e199256dd4a37bebbc92a2d28fac45b5f

Modified Files
--------------
src/backend/access/transam/xlogwait.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)