mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
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:
parent
00a7767fcc
commit
620935ad08
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user