We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0cb3dee commitfce52d2Copy full SHA for fce52d2
contrib/multimaster/multimaster.c
@@ -115,7 +115,6 @@ static TransactionId DtmNextXid;
115
staticSnapshotDataDtmSnapshot= {HeapTupleSatisfiesMVCC };
116
staticboolDtmHasGlobalSnapshot;
117
staticintDtmLocalXidReserve;
118
-staticintDtmCurcid;
119
staticSnapshotDtmLastSnapshot;
120
staticTransactionManagerDtmTM= {
121
DtmGetTransactionStatus,
@@ -617,11 +616,9 @@ static Snapshot DtmGetSnapshot(Snapshot snapshot)
617
616
{
618
if (TransactionIdIsValid(DtmNextXid)&&snapshot!=&CatalogSnapshotData)
619
620
-intcid=GetCurrentCommandId(false);
621
-if (!DtmHasGlobalSnapshot&& (snapshot!=DtmLastSnapshot||DtmCurcid!=cid) {
+if (!DtmHasGlobalSnapshot) {
622
DtmGlobalGetSnapshot(DtmNextXid,&DtmSnapshot,&dtm->minXid);
623
}
624
-DtmCurcid=cid;
625
DtmLastSnapshot=snapshot;
626
DtmMergeWithGlobalSnapshot(snapshot);
627
if (!IsolationUsesXactSnapshot())