Skip to content

Commit 7c03440

Browse files
committed
Merge branch 'xtm' of gitlab.postgrespro.ru:pgpro-dev/postgrespro into xtm
2 parents c7644ba + 3ddd266 commit 7c03440

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

contrib/pg_xtm/pg_dtm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ DtmGetNewTransactionId(bool isSubXact)
482482

483483
static Snapshot DtmGetSnapshot(Snapshot snapshot)
484484
{
485-
if (TransactionIdIsValid(DtmNextXid) && IsMVCCSnapshot(snapshot) && snapshot != &CatalogSnapshotData) {
485+
if (TransactionIdIsValid(DtmNextXid) /*&& IsMVCCSnapshot(snapshot)*/ && snapshot != &CatalogSnapshotData) {
486486
if (!DtmHasGlobalSnapshot && (snapshot != DtmLastSnapshot || DtmCurcid != snapshot->curcid)) {
487487
DtmGlobalGetSnapshot(DtmNextXid, &DtmSnapshot, &DtmMinXid);
488488
}

contrib/pg_xtm/tests/transfers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
const (
1212
TRANSFER_CONNECTIONS = 8
1313
INIT_AMOUNT = 10000
14-
N_ITERATIONS = 10000
14+
N_ITERATIONS = 100000
1515
N_ACCOUNTS = TRANSFER_CONNECTIONS//100000
1616
//ISOLATION_LEVEL = "repeatable read"
1717
ISOLATION_LEVEL = "read committed"

install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ sed -i '' 's/#fsync =.*/fsync = off/' ./install/data2/postgresql.conf
2626
echo 'dtm.node_id = 0' >> ./install/data1/postgresql.conf
2727
echo 'dtm.node_id = 1' >> ./install/data2/postgresql.conf
2828

29+
echo 'autovacuum = off' >> ./install/data1/postgresql.conf
30+
echo 'autovacuum = off' >> ./install/data2/postgresql.conf
31+
2932
./install/bin/pg_ctl -D ./install/data1 -l ./install/data1/log start
3033
./install/bin/pg_ctl -D ./install/data2 -l ./install/data2/log start
3134

0 commit comments

Comments
 (0)