Unbreak postmaster restart-after-crash sequence

In patch 82233ce7ea, AbortStartTime wasn't being reset appropriately
after the restart sequence, causing subsequent iterations through
ServerLoop to malfunction.
This commit is contained in:
Alvaro Herrera 2013-07-03 11:04:21 -04:00
parent 00a7767fcc
commit 620935ad08

View File

@ -2594,6 +2594,7 @@ reaper(SIGNAL_ARGS)
* Startup succeeded, commence normal operations
*/
FatalError = false;
AbortStartTime = 0;
ReachedNormalRunning = true;
pmState = PM_RUN;
@ -4711,6 +4712,7 @@ sigusr1_handler(SIGNAL_ARGS)
{
/* WAL redo has started. We're out of reinitialization. */
FatalError = false;
AbortStartTime = 0;
/*
* Crank up the background tasks. It doesn't matter if this fails,