mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Revert "Prevent panic during shutdown checkpoint"
This reverts commit 086221cf6b
, which
was made to master only.
The approach implemented in the above commit has some issues. While
those could easily be fixed incrementally, doing so would make
backpatching considerably harder, so instead first revert this patch.
Discussion: https://postgr.es/m/20170602002912.tqlwn4gymzlxpvs2@alap3.anarazel.de
This commit is contained in:
@ -8324,12 +8324,6 @@ ShutdownXLOG(int code, Datum arg)
|
||||
ereport(IsPostmasterEnvironment ? LOG : NOTICE,
|
||||
(errmsg("shutting down")));
|
||||
|
||||
/*
|
||||
* Wait for WAL senders to be in stopping state. This prevents commands
|
||||
* from writing new WAL.
|
||||
*/
|
||||
WalSndWaitStopping();
|
||||
|
||||
if (RecoveryInProgress())
|
||||
CreateRestartPoint(CHECKPOINT_IS_SHUTDOWN | CHECKPOINT_IMMEDIATE);
|
||||
else
|
||||
|
Reference in New Issue
Block a user