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

Commit ac1ac79

Browse files
knizhnikkelvich
authored andcommitted
Avoid long transactions in inspect task
1 parent c7f8cde commit ac1ac79

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

multimaster.c

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

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)