mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Rework handling of subtransactions in 2PC recovery
The bug fixed by0874d4f3e1
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 by546c13e11b
. Author: Simon Riggs Reviewed-by: Tom Lane, Michael Paquier Discussion: http://postgr.es/m/CANP8+j+vvXmruL_i2buvdhMeVv5TQu0Hm2+C5N+kdVwHJuor8w@mail.gmail.com
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user