Skip to content

Commit d1c7f1b

Browse files
knizhnikkelvich
authored andcommitted
More visibility traces
1 parent c2cd5cb commit d1c7f1b

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
return PgXidInMVCCSnapshot(xid, snapshot);
376376
}
377-
378377
MtmLock(LW_SHARED);
379378

380379
#if TRACE_SLEEP_TIME
@@ -426,6 +425,9 @@ bool MtmXidInMVCCSnapshot(TransactionId xid, Snapshot snapshot)
426425
else
427426
{
428427
bool invisible = 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy