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

Commit 10e3e7a

Browse files
committed
Avoid long transactions in inspect task
1 parent cbdb2d1 commit 10e3e7a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contrib/mmts/multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ MtmAdjustOldestXid(TransactionId xid)
530530
if (prev != NULL) {
531531
Mtm->transListHead = prev;
532532
Mtm->oldestXid = xid = prev->xid;
533-
MTM_LOG2("%d: MtmAdjustOldestXid: oldestXid=%d, olderstSnapshot=%ld", MyProcPid, xid, oldestSnapshot);
533+
MTM_LOG2("%d: MtmAdjustOldestXid: oldestXid=%d, oldestSnapshot=%ld", MyProcPid, xid, oldestSnapshot);
534534
} else if (TransactionIdPrecedes(Mtm->oldestXid, xid)) {
535535
xid = Mtm->oldestXid;
536536
}

contrib/mmts/tests2/lib/bank_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def check_total(self):
102102
def tx(conn, cur):
103103
cur.execute('select sum(amount) from bank_test')
104104
res = cur.fetchone()
105+
conn.commit()
105106
if res[0] != 0:
106107
print("Isolation error, total = %d" % (res[0],))
107108
raise BaseException

0 commit comments

Comments
 (0)