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 @@ -6289,12 +6289,11 @@ StartupXLOG(void)
6289
6289
}
6290
6290
6291
6291
/*
6292
- * If we launched a WAL receiver, it should be gone by now. It will trump
6293
- * over the startup checkpoint and subsequent records if it's still alive,
6294
- * so be extra sure that it's gone .
6292
+ * Kill WAL receiver, if it's still running, before we continue to write
6293
+ * the startup checkpoint record. It will trump over the checkpoint and
6294
+ * subsequent records if it's still alive when we start writing WAL .
6295
6295
*/
6296
- if (WalRcvInProgress ())
6297
- elog (PANIC , "wal receiver still active" );
6296
+ ShutdownWalRcv ();
6298
6297
6299
6298
/*
6300
6299
* We are now done reading the xlog from stream. Turn off streaming
You can’t perform that action at this time.
0 commit comments