Skip to content

Commit 277ab49

Browse files
committed
Experiment with elimnation of global snapshot
1 parent 1501d53 commit 277ab49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/multimaster/multimaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static void DtmMergeWithGlobalSnapshot(Snapshot dst)
238238
TransactionId xid;
239239
Snapshot src = &DtmSnapshot;
240240

241-
if (!(TransactionIdIsValid(src->xmin) && TransactionIdIsValid(src->xmax))) {
241+
if (true || !(TransactionIdIsValid(src->xmin) && TransactionIdIsValid(src->xmax))) {
242242
PgGetSnapshotData(dst);
243243
return;
244244
}
@@ -627,7 +627,7 @@ static Snapshot DtmGetSnapshot(Snapshot snapshot)
627627
/* Use single global snapshot during all transaction for repeatable read isolation level,
628628
* but obtain new global snapshot each time it is requested for read committed isolation level
629629
*/
630-
DtmHasGlobalSnapshot = false;
630+
//DtmHasGlobalSnapshot = false;
631631
}
632632
}
633633
else

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy