Skip to content

Commit a6c70f6

Browse files
committed
Revert recent changes related to handling of 2PC files at recovery
This commit reverts 8f67f99 (down to v13) and c3de0f9 (down to v17), as these are proving to not be completely correct regarding two aspects: - In v17 and newer branches, c3de0f9's check for epoch handling is incorrect, and does not correctly handle frozen epochs. A logic closer to widen_snapshot_xid() should be used. The 2PC code should try to integrate deeper with FullTransactionIds, 5a1dfde being not enough. - In v13 and newer branches, 8f67f99 is a workaround for the real issue, which is that we should not attempt CLOG lookups without reaching consistency. This exists since 728bd99, and this is reachable with ProcessTwoPhaseBuffer() called by restoreTwoPhaseData() at the beginning of recovery. Per discussion with Noah Misch. Discussion: https://postgr.es/m/20250116010051.f3.nmisch@google.com Backpatch-through: 13
1 parent 0dc9c7d commit a6c70f6

File tree

2 files changed

+55
-154
lines changed

2 files changed

+55
-154
lines changed

0 commit comments

Comments
 (0)