• Peter Eisentraut's avatar
    Delay updating control file to "in production" · ebdf5bf7
    Peter Eisentraut authored
    Move the updating of the control file to "in production" status until
    the point where WAL writes are allowed.  Before, there could be a
    significant gap between the control file update and write transactions
    actually being allowed.  This makes it more reliable to use the control
    status to verify the end of a promotion.
    
    From: Michael Paquier <michael.paquier@gmail.com>
    ebdf5bf7
xlog.c 363 KB