Commit 620935ad authored by Alvaro Herrera's avatar Alvaro Herrera

Unbreak postmaster restart-after-crash sequence

In patch 82233ce7, AbortStartTime wasn't being reset appropriately
after the restart sequence, causing subsequent iterations through
ServerLoop to malfunction.
parent 00a7767f
...@@ -2594,6 +2594,7 @@ reaper(SIGNAL_ARGS) ...@@ -2594,6 +2594,7 @@ reaper(SIGNAL_ARGS)
* Startup succeeded, commence normal operations * Startup succeeded, commence normal operations
*/ */
FatalError = false; FatalError = false;
AbortStartTime = 0;
ReachedNormalRunning = true; ReachedNormalRunning = true;
pmState = PM_RUN; pmState = PM_RUN;
...@@ -4711,6 +4712,7 @@ sigusr1_handler(SIGNAL_ARGS) ...@@ -4711,6 +4712,7 @@ sigusr1_handler(SIGNAL_ARGS)
{ {
/* WAL redo has started. We're out of reinitialization. */ /* WAL redo has started. We're out of reinitialization. */
FatalError = false; FatalError = false;
AbortStartTime = 0;
/* /*
* Crank up the background tasks. It doesn't matter if this fails, * Crank up the background tasks. It doesn't matter if this fails,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment