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

Commit 6f1906b

Browse files
knizhnikkelvich
authored andcommitted
Ignore rel in MtmGetOldestXmin
1 parent 055c6a6 commit 6f1906b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

multimaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ Snapshot MtmGetSnapshot(Snapshot snapshot)
312312

313313
TransactionId MtmGetOldestXmin(Relation rel, bool ignoreVacuum)
314314
{
315-
TransactionId xmin = PgGetOldestXmin(rel, ignoreVacuum);
315+
TransactionId xmin = PgGetOldestXmin(NULL, ignoreVacuum); /* consider all backends */
316316
xmin = MtmAdjustOldestXid(xmin);
317317
return xmin;
318318
}
@@ -410,7 +410,7 @@ MtmAdjustOldestXid(TransactionId xid)
410410

411411
MtmLock(LW_EXCLUSIVE);
412412
ts = (MtmTransState*)hash_search(MtmXid2State, &xid, HASH_FIND, NULL);
413-
if (ts != NULL && ts->status == TRANSACTION_STATUS_COMMITTED) {
413+
if (ts != NULL && ts->status == TRANSACTION_STATUS_COMMITTED) { /* committed transactions have same CSNs at all nodes */
414414
csn_t oldestSnapshot;
415415
int i;
416416

0 commit comments

Comments
 (0)