diff options
author | Andres Freund <andres@anarazel.de> | 2017-06-05 18:53:41 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2017-06-05 19:18:15 -0700 |
commit | 703f148e98ecb4b299fdad403fc5a1de51220714 (patch) | |
tree | 6f6d70af2a15f51949990235b5dbf97ff7e1c38a /src/backend/access/transam/xlog.c | |
parent | 41a21bf9b4a2449eddc8ea2b29597e835eea9bfd (diff) | |
download | postgresql-703f148e98ecb4b299fdad403fc5a1de51220714.tar.gz postgresql-703f148e98ecb4b299fdad403fc5a1de51220714.zip |
Revert "Prevent panic during shutdown checkpoint"
This reverts commit 086221cf6b1727c2baed4703c582f657b7c5350e, 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
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 399822d3fea..35ee7d1cb6a 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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 |