Commit 250c26b
committed
Fix checkpointer crash in EXEC_BACKEND builds.
Nothing in the checkpointer calls InitXLOGAccess(), so WALInsertLocks
never got initialized there. Without EXEC_BACKEND, it works anyway
because the correct value is inherited from the postmaster, but
with EXEC_BACKEND we've got a problem. The problem appears to have
been introduced by commit 68a2e52.
To fix, move the relevant initialization steps from InitXLOGAccess()
to XLOGShmemInit(), making this more parallel to what we do
elsewhere.
Amit Kapila1 parent 93a028f commit 250c26b
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4841 | 4841 | | |
4842 | 4842 | | |
4843 | 4843 | | |
| 4844 | + | |
| 4845 | + | |
| 4846 | + | |
| 4847 | + | |
| 4848 | + | |
4844 | 4849 | | |
4845 | 4850 | | |
4846 | 4851 | | |
| |||
7619 | 7624 | | |
7620 | 7625 | | |
7621 | 7626 | | |
7622 | | - | |
7623 | | - | |
7624 | | - | |
7625 | | - | |
7626 | | - | |
7627 | 7627 | | |
7628 | 7628 | | |
7629 | 7629 | | |
| |||
0 commit comments