File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -341,14 +341,14 @@ csn_t MtmTransactionSnapshot(TransactionId xid)
341341Snapshot MtmGetSnapshot (Snapshot snapshot )
342342{
343343 snapshot = PgGetSnapshotData (snapshot );
344- RecentGlobalDataXmin = RecentGlobalXmin = MtmAdjustOldestXid (RecentGlobalDataXmin );
344+ RecentGlobalDataXmin = RecentGlobalXmin = Mtm -> oldestXid ; // MtmAdjustOldestXid(RecentGlobalDataXmin);
345345 return snapshot ;
346346}
347347
348348
349349TransactionId MtmGetOldestXmin (Relation rel , bool ignoreVacuum )
350350{
351- TransactionId xmin = PgGetOldestXmin (NULL , ignoreVacuum ); /* consider all backends */
351+ TransactionId xmin = PgGetOldestXmin (NULL , false ); /* consider all backends */
352352 xmin = MtmAdjustOldestXid (xmin );
353353 return xmin ;
354354}
@@ -539,7 +539,8 @@ MtmAdjustOldestXid(TransactionId xid)
539539 if (prev != NULL ) {
540540 Mtm -> transListHead = prev ;
541541 Mtm -> oldestXid = xid = prev -> xid ;
542- } else if (TransactionIdPrecedes (Mtm -> oldestXid , xid )) {
542+ } else {
543+ Assert (TransactionIdPrecedesOrEqual (Mtm -> oldestXid , xid ));
543544 xid = Mtm -> oldestXid ;
544545 }
545546 } else {
You can’t perform that action at this time.
0 commit comments