• Robert Haas's avatar
    Fix checkpointer crash in EXEC_BACKEND builds. · 250c26ba
    Robert Haas authored
    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 68a2e52b.
    
    To fix, move the relevant initialization steps from InitXLOGAccess()
    to XLOGShmemInit(), making this more parallel to what we do
    elsewhere.
    
    Amit Kapila
    250c26ba
xlog.c 344 KB