@@ -1378,10 +1378,10 @@ ServerLoop(void)
1378
1378
if (pmState == PM_RUN || pmState == PM_RECOVERY ||
1379
1379
pmState == PM_HOT_STANDBY )
1380
1380
{
1381
- if (BgWriterPID == 0 )
1382
- BgWriterPID = StartBackgroundWriter ();
1383
1381
if (CheckpointerPID == 0 )
1384
1382
CheckpointerPID = StartCheckpointer ();
1383
+ if (BgWriterPID == 0 )
1384
+ BgWriterPID = StartBackgroundWriter ();
1385
1385
}
1386
1386
1387
1387
/*
@@ -2372,10 +2372,10 @@ reaper(SIGNAL_ARGS)
2372
2372
* when we entered consistent recovery state. It doesn't matter
2373
2373
* if this fails, we'll just try again later.
2374
2374
*/
2375
- if (BgWriterPID == 0 )
2376
- BgWriterPID = StartBackgroundWriter ();
2377
2375
if (CheckpointerPID == 0 )
2378
2376
CheckpointerPID = StartCheckpointer ();
2377
+ if (BgWriterPID == 0 )
2378
+ BgWriterPID = StartBackgroundWriter ();
2379
2379
if (WalWriterPID == 0 )
2380
2380
WalWriterPID = StartWalWriter ();
2381
2381
@@ -4239,10 +4239,10 @@ sigusr1_handler(SIGNAL_ARGS)
4239
4239
* Crank up the background tasks. It doesn't matter if this fails,
4240
4240
* we'll just try again later.
4241
4241
*/
4242
- Assert (BgWriterPID == 0 );
4243
- BgWriterPID = StartBackgroundWriter ();
4244
4242
Assert (CheckpointerPID == 0 );
4245
4243
CheckpointerPID = StartCheckpointer ();
4244
+ Assert (BgWriterPID == 0 );
4245
+ BgWriterPID = StartBackgroundWriter ();
4246
4246
4247
4247
pmState = PM_RECOVERY ;
4248
4248
}
0 commit comments