Clarify what is protected by WaitLSNLock
Alexander Korotkov <akorotkov@postgresql.org>
Clarify what is protected by WaitLSNLock Not just WaitLSNState.waitersHeap, but also WaitLSNState.procInfos and updating of WaitLSNState.minWaitedLSN is protected by WaitLSNLock. There is one now documented exclusion on fast-path checking of WaitLSNProcInfo.inHeap flag. Discussion: https://postgr.es/m/202404030658.hhj3vfxeyhft%40alvherre.pgsql
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/waitlsn.c | modified | +8 −2 |
| src/include/commands/waitlsn.h | modified | +5 −2 |
Discussion
- Re: [HACKERS] make async slave to wait for lsn to be replayed 113 messages · 2023-02-28 → 2024-09-17