Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f995348

Browse files
committed
ignore slots xmin in MtmAdjustOldestXid
1 parent 9352738 commit f995348

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

multimaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ static void
963963
MtmBeginTransaction(MtmCurrentTrans* x)
964964
{
965965
if (x->snapshot == INVALID_CSN) {
966-
TransactionId xmin = (Mtm->gcCount >= MtmGcPeriod) ? PgGetOldestXmin(NULL, false) : InvalidTransactionId; /* Get oldest xmin outside critical section */
966+
TransactionId xmin = (Mtm->gcCount >= MtmGcPeriod) ? PgGetOldestXminNoslot(NULL, false) : InvalidTransactionId; /* Get oldest xmin outside critical section */
967967

968968
Assert(!x->isActive);
969969
MtmLock(LW_EXCLUSIVE);
@@ -2849,7 +2849,7 @@ _PG_init(void)
28492849
"Number of distributed transactions after which garbage collection is started",
28502850
"Multimaster is building xid->csn hash map which has to be cleaned to avoid hash overflow. This parameter specifies interval of invoking garbage collector for this map",
28512851
&MtmGcPeriod,
2852-
MTM_HASH_SIZE/10,
2852+
1000,
28532853
1,
28542854
INT_MAX,
28552855
PGC_BACKEND,

tests/run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
./dtmbench -i -a 100000 -c "dbname=regression host=localhost port=5434 sslmode=disable"
2+
13
./dtmbench \
24
-c "dbname=regression host=localhost port=5432 sslmode=disable" \
35
-c "dbname=regression host=localhost port=5433 sslmode=disable" \
46
-c "dbname=regression host=localhost port=5434 sslmode=disable" \
5-
-n 1000 -a 1000 -w 10 -r 1 $*
7+
-n 10000 -a 100000 -w 30 -r 10 $*

0 commit comments

Comments
 (0)