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 @@ -342,14 +342,14 @@ csn_t MtmTransactionSnapshot(TransactionId xid)
342342Snapshot MtmGetSnapshot (Snapshot snapshot )
343343{
344344 snapshot = PgGetSnapshotData (snapshot );
345- RecentGlobalDataXmin = RecentGlobalXmin = MtmAdjustOldestXid (RecentGlobalDataXmin );
345+ RecentGlobalDataXmin = RecentGlobalXmin = Mtm -> oldestXid ; // MtmAdjustOldestXid(RecentGlobalDataXmin);
346346 return snapshot ;
347347}
348348
349349
350350TransactionId MtmGetOldestXmin (Relation rel , bool ignoreVacuum )
351351{
352- TransactionId xmin = PgGetOldestXmin (NULL , ignoreVacuum ); /* consider all backends */
352+ TransactionId xmin = PgGetOldestXmin (NULL , false ); /* consider all backends */
353353 xmin = MtmAdjustOldestXid (xmin );
354354 return xmin ;
355355}
@@ -540,7 +540,8 @@ MtmAdjustOldestXid(TransactionId xid)
540540 if (prev != NULL ) {
541541 Mtm -> transListHead = prev ;
542542 Mtm -> oldestXid = xid = prev -> xid ;
543- } else if (TransactionIdPrecedes (Mtm -> oldestXid , xid )) {
543+ } else {
544+ Assert (TransactionIdPrecedesOrEqual (Mtm -> oldestXid , xid ));
544545 xid = Mtm -> oldestXid ;
545546 }
546547 } else {
You can’t perform that action at this time.
0 commit comments