Content-Length: 275585 | pFad | http://github.com/postgrespro/postgres_cluster/commit/317c62194a9969cbead86c18e38f729c5d4307fc

9B Ignore rel in MtmGetOldestXmin · postgrespro/postgres_cluster@317c621 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/317c62194a9969cbead86c18e38f729c5d4307fc

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy