Skip to content

Commit 78ef39b

Browse files
committed
Do not restrict merge with global snapshot for MVCC snapshots only
1 parent 78dd16d commit 78ef39b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_xtm/pg_dtm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ DtmGetNewTransactionId(bool isSubXact)
482482

483483
static Snapshot DtmGetSnapshot(Snapshot snapshot)
484484
{
485-
if (TransactionIdIsValid(DtmNextXid) && IsMVCCSnapshot(snapshot) && snapshot != &CatalogSnapshotData) {
485+
if (TransactionIdIsValid(DtmNextXid) /*&& IsMVCCSnapshot(snapshot)*/ && snapshot != &CatalogSnapshotData) {
486486
if (!DtmHasGlobalSnapshot && (snapshot != DtmLastSnapshot || DtmCurcid != snapshot->curcid)) {
487487
DtmGlobalGetSnapshot(DtmNextXid, &DtmSnapshot, &DtmMinXid);
488488
}

0 commit comments

Comments
 (0)