File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,6 @@ static TransactionId DtmNextXid;
115115static SnapshotData DtmSnapshot = { HeapTupleSatisfiesMVCC };
116116static bool DtmHasGlobalSnapshot ;
117117static int DtmLocalXidReserve ;
118- static int DtmCurcid ;
119118static Snapshot DtmLastSnapshot ;
120119static TransactionManager DtmTM = {
121120 DtmGetTransactionStatus ,
@@ -617,11 +616,9 @@ static Snapshot DtmGetSnapshot(Snapshot snapshot)
617616{
618617 if (TransactionIdIsValid (DtmNextXid ) && snapshot != & CatalogSnapshotData )
619618 {
620- int cid = GetCurrentCommandId (false);
621- if (!DtmHasGlobalSnapshot && (snapshot != DtmLastSnapshot || DtmCurcid != cid ) {
619+ if (!DtmHasGlobalSnapshot ) {
622620 DtmGlobalGetSnapshot (DtmNextXid , & DtmSnapshot , & dtm -> minXid );
623621 }
624- DtmCurcid = cid ;
625622 DtmLastSnapshot = snapshot ;
626623 DtmMergeWithGlobalSnapshot (snapshot );
627624 if (!IsolationUsesXactSnapshot ())
You can’t perform that action at this time.
0 commit comments