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

Commite19bdea

Browse files
committed
More visibility traces
1 parent32b7596 commite19bdea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎contrib/mmts/multimaster.c‎

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

381380
#ifTRACE_SLEEP_TIME
@@ -427,6 +426,9 @@ bool MtmXidInMVCCSnapshot(TransactionId xid, Snapshot snapshot)
427426
else
428427
{
429428
boolinvisible=ts->status!=TRANSACTION_STATUS_COMMITTED;
429+
if (invisible!=PgXidInMVCCSnapshot(xid,snapshot)) {
430+
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);
431+
}
430432
MTM_LOG4("%d: tuple with xid=%d(csn= %ld) is %s in snapshot %ld",
431433
MyProcPid,xid,ts->csn,invisible ?"rollbacked" :"committed",MtmTx.snapshot);
432434
MtmUnlock();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp