Skip to content

Commit 317c621

Browse files
committed
Ignore rel in MtmGetOldestXmin
1 parent d0c55d9 commit 317c621

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/mmts/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)
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