File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/backend/access/transam Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -6611,12 +6611,11 @@ StartupXLOG(void)
6611
6611
}
6612
6612
6613
6613
/*
6614
- * If we launched a WAL receiver, it should be gone by now. It will trump
6615
- * over the startup checkpoint and subsequent records if it's still alive,
6616
- * so be extra sure that it's gone .
6614
+ * Kill WAL receiver, if it's still running, before we continue to write
6615
+ * the startup checkpoint record. It will trump over the checkpoint and
6616
+ * subsequent records if it's still alive when we start writing WAL .
6617
6617
*/
6618
- if (WalRcvInProgress ())
6619
- elog (PANIC , "wal receiver still active" );
6618
+ ShutdownWalRcv ();
6620
6619
6621
6620
/*
6622
6621
* We don't need the latch anymore. It's not strictly necessary to disown
You can’t perform that action at this time.
0 commit comments