File tree 1 file changed +4
-3
lines changed
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)
341
341
Snapshot MtmGetSnapshot (Snapshot snapshot )
342
342
{
343
343
snapshot = PgGetSnapshotData (snapshot );
344
- RecentGlobalDataXmin = RecentGlobalXmin = MtmAdjustOldestXid (RecentGlobalDataXmin );
344
+ RecentGlobalDataXmin = RecentGlobalXmin = Mtm -> oldestXid ; // MtmAdjustOldestXid(RecentGlobalDataXmin);
345
345
return snapshot ;
346
346
}
347
347
348
348
349
349
TransactionId MtmGetOldestXmin (Relation rel , bool ignoreVacuum )
350
350
{
351
- TransactionId xmin = PgGetOldestXmin (NULL , ignoreVacuum ); /* consider all backends */
351
+ TransactionId xmin = PgGetOldestXmin (NULL , false ); /* consider all backends */
352
352
xmin = MtmAdjustOldestXid (xmin );
353
353
return xmin ;
354
354
}
@@ -539,7 +539,8 @@ MtmAdjustOldestXid(TransactionId xid)
539
539
if (prev != NULL ) {
540
540
Mtm -> transListHead = prev ;
541
541
Mtm -> oldestXid = xid = prev -> xid ;
542
- } else if (TransactionIdPrecedes (Mtm -> oldestXid , xid )) {
542
+ } else {
543
+ Assert (TransactionIdPrecedesOrEqual (Mtm -> oldestXid , xid ));
543
544
xid = Mtm -> oldestXid ;
544
545
}
545
546
} else {
You can’t perform that action at this time.
0 commit comments