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;
115
115
static SnapshotData DtmSnapshot = { HeapTupleSatisfiesMVCC };
116
116
static bool DtmHasGlobalSnapshot ;
117
117
static int DtmLocalXidReserve ;
118
- static int DtmCurcid ;
119
118
static Snapshot DtmLastSnapshot ;
120
119
static TransactionManager DtmTM = {
121
120
DtmGetTransactionStatus ,
@@ -617,11 +616,9 @@ static Snapshot DtmGetSnapshot(Snapshot snapshot)
617
616
{
618
617
if (TransactionIdIsValid (DtmNextXid ) && snapshot != & CatalogSnapshotData )
619
618
{
620
- int cid = GetCurrentCommandId (false);
621
- if (!DtmHasGlobalSnapshot && (snapshot != DtmLastSnapshot || DtmCurcid != cid ) {
619
+ if (!DtmHasGlobalSnapshot ) {
622
620
DtmGlobalGetSnapshot (DtmNextXid , & DtmSnapshot , & dtm -> minXid );
623
621
}
624
- DtmCurcid = cid ;
625
622
DtmLastSnapshot = snapshot ;
626
623
DtmMergeWithGlobalSnapshot (snapshot );
627
624
if (!IsolationUsesXactSnapshot ())
You can’t perform that action at this time.
0 commit comments