mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +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:
@@ -14,7 +14,7 @@
|
||||
/* Number of SLRU buffers to use for subtrans */
|
||||
#define NUM_SUBTRANS_BUFFERS 32
|
||||
|
||||
extern void SubTransSetParent(TransactionId xid, TransactionId parent, bool overwriteOK);
|
||||
extern void SubTransSetParent(TransactionId xid, TransactionId parent);
|
||||
extern TransactionId SubTransGetParent(TransactionId xid);
|
||||
extern TransactionId SubTransGetTopmostTransaction(TransactionId xid);
|
||||
|
||||
|
Reference in New Issue
Block a user