• Fujii Masao's avatar
    Fix assertion failure by an immediate shutdown. · 91c3613d
    Fujii Masao authored
    In PM_WAIT_DEAD_END state, checkpointer process must be dead already.
    But an immediate shutdown could make postmaster's state machine
    transition to PM_WAIT_DEAD_END state even if checkpointer process is
    still running,  and which caused assertion failure. This bug was introduced
    in commit 457d6cf0.
    
    This patch ensures that postmaster's state machine doesn't transition to
    PM_WAIT_DEAD_END state in an immediate shutdown while checkpointer
    process is running.
    91c3613d
postmaster.c 166 KB