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

Commitd1c7f1b

Browse files
knizhnikkelvich
authored andcommitted
More visibility traces
1 parentc2cd5cb commitd1c7f1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎multimaster.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ bool MtmXidInMVCCSnapshot(TransactionId xid, Snapshot snapshot)
374374
if (!MtmUseDtm) {
375375
returnPgXidInMVCCSnapshot(xid,snapshot);
376376
}
377-
378377
MtmLock(LW_SHARED);
379378

380379
#ifTRACE_SLEEP_TIME
@@ -426,6 +425,9 @@ bool MtmXidInMVCCSnapshot(TransactionId xid, Snapshot snapshot)
426425
else
427426
{
428427
boolinvisible=ts->status!=TRANSACTION_STATUS_COMMITTED;
428+
if (invisible!=PgXidInMVCCSnapshot(xid,snapshot)) {
429+
fprintf(stderr,"Change visibility for XID %d(csn=%ld, status=%d) in snapshot %ld [%d,%d]\n",xid,ts->csn,ts->status,MtmTx.snapshot,snapshot->xmin,snapshot->xmax);
430+
}
429431
MTM_LOG4("%d: tuple with xid=%d(csn= %ld) is %s in snapshot %ld",
430432
MyProcPid,xid,ts->csn,invisible ?"rollbacked" :"committed",MtmTx.snapshot);
431433
MtmUnlock();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp