| From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Clarify LSN waiter cleanup after wakeup |
| Date: | 2026-08-18 12:02:13 |
| Message-ID: | E1wwIWC-000000013YR-2FX6@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Discussion: https://postgr.es/m/CABPTF7UtW_cAa%3DQh4RDfKiUqu3pJJE22ai9tbWJVERbeRyssLw%40mail.gmail.com
Backpatch-through: 19
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/774dc1e9ddf2ffd0b6b66f3ed9d041fe25cae36a
Modified Files
--------------
src/backend/access/transam/xlogwait.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alexander Korotkov | 2026-08-18 12:02:15 | pgsql: Fix WAIT FOR LSN documentation examples |
| Previous Message | Amit Langote | 2026-08-18 08:08:03 | pgsql: Fix RI fast-path race with REINDEX CONCURRENTLY |