Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9fa9dd2

Browse files
committed
new GetOldestXmin interface
1 parent dce54fd commit 9fa9dd2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

multimaster.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,11 @@ static void MtmAbortPreparedTransaction(MtmCurrentTrans* x);
148148
static void MtmPreCommitPreparedTransaction(MtmCurrentTrans* x);
149149
static void MtmEndTransaction(MtmCurrentTrans* x, bool commit);
150150
static bool MtmTwoPhaseCommit(MtmCurrentTrans* x);
151-
static TransactionId MtmGetOldestXmin(Relation rel, bool ignoreVacuum);
152-
// static bool MtmXidInMVCCSnapshot(TransactionId xid, Snapshot snapshot);
151+
152+
static TransactionId MtmGetOldestXmin(Relation rel, int flags);
153+
//static bool MtmXidInMVCCSnapshot(TransactionId xid, Snapshot snapshot);
153154
static void MtmAdjustOldestXid(void);
155+
154156
static bool MtmDetectGlobalDeadLock(PGPROC* proc);
155157
static void MtmAddSubtransactions(MtmTransState* ts, TransactionId* subxids, int nSubxids);
156158
static char const* MtmGetName(void);
@@ -609,9 +611,9 @@ Snapshot MtmGetSnapshot(Snapshot snapshot)
609611
}
610612

611613

612-
TransactionId MtmGetOldestXmin(Relation rel, bool ignoreVacuum)
614+
TransactionId MtmGetOldestXmin(Relation rel, int flags)
613615
{
614-
TransactionId xmin = PgGetOldestXmin(rel, ignoreVacuum); /* consider all backends */
616+
TransactionId xmin = PgGetOldestXmin(rel, flags); /* consider all backends */
615617
// if (TransactionIdIsValid(xmin)) {
616618
// MtmLock(LW_EXCLUSIVE);
617619
// xmin = MtmAdjustOldestXid(xmin);

0 commit comments

Comments
 (0)