Skip to content

Commit 34c5245

Browse files
committed
Receive snapshots implicitly
2 parents 9d14fcb + 4b5d155 commit 34c5245

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/pg_xtm/pg_dtm.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,13 @@ PG_FUNCTION_INFO_V1(dtm_get_current_snapshot_xmin);
452452
Datum
453453
dtm_get_current_snapshot_xmin(PG_FUNCTION_ARGS)
454454
{
455+
// if (IsolationUsesXactSnapshot()){ /* RR & S */
456+
// DtmEnsureConnection();
457+
// DtmGlobalGetSnapshot(DtmConn, DtmNodeId, gtid.xids[DtmNodeId], &DtmSnapshot);
458+
// Assert(CurrentTransactionSnapshot != NULL);
459+
// DtmMergeSnapshots(CurrentTransactionSnapshot, &DtmSnapshot);
460+
// DtmUpdateRecentXmin();
461+
// }
455462
PG_RETURN_INT32(CurrentTransactionSnapshot->xmin);
456463
}
457464

0 commit comments

Comments
 (0)