Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitac1ac79

Browse files
knizhnikkelvich
authored andcommitted
Avoid long transactions in inspect task
1 parentc7f8cde commitac1ac79

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
}elseif (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
deftx(conn,cur):
103103
cur.execute('select sum(amount) from bank_test')
104104
res=cur.fetchone()
105+
conn.commit()
105106
ifres[0]!=0:
106107
print("Isolation error, total = %d"% (res[0],))
107108
raiseBaseException

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp