diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2017-04-27 14:41:22 +0200 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2017-04-27 14:41:22 +0200 |
commit | 49e928154978da2a5976628588fc545b726ad84a (patch) | |
tree | c3d75c20b8a3ed27fc7b6ab66cd751642ac01d57 /src/backend/access/transam/xlog.c | |
parent | 0352c15e5ab4f70c3ab2ac1d48d9f38a5dd11786 (diff) | |
download | postgresql-49e928154978da2a5976628588fc545b726ad84a.tar.gz postgresql-49e928154978da2a5976628588fc545b726ad84a.zip |
Rework handling of subtransactions in 2PC recovery
The bug fixed by 0874d4f3e183757ba15a4b3f3bf563e0393dd9c2
caused us to question and rework the handling of
subtransactions in 2PC during and at end of recovery.
Patch adds checks and tests to ensure no further bugs.
This effectively removes the temporary measure put in place
by 546c13e11b29a5408b9d6a6e3cca301380b47f7f.
Author: Simon Riggs
Reviewed-by: Tom Lane, Michael Paquier
Discussion: http://postgr.es/m/CANP8+j+vvXmruL_i2buvdhMeVv5TQu0Hm2+C5N+kdVwHJuor8w@mail.gmail.com
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index c7667879c65..a89d99838ac 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -6930,7 +6930,7 @@ StartupXLOG(void) ProcArrayApplyRecoveryInfo(&running); - StandbyRecoverPreparedTransactions(false); + StandbyRecoverPreparedTransactions(); } } @@ -9692,7 +9692,7 @@ xlog_redo(XLogReaderState *record) ProcArrayApplyRecoveryInfo(&running); - StandbyRecoverPreparedTransactions(true); + StandbyRecoverPreparedTransactions(); } /* ControlFile->checkPointCopy always tracks the latest ckpt XID */ |