mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Rename various "freeze multixact" variables
It seems to make more sense to use "cutoff multixact" terminology throughout the backend code; "freeze" is associated with replacing of an Xid with FrozenTransactionId, which is not what we do for MultiXactIds. Andres Freund Some adjustments by Álvaro Herrera
This commit is contained in:
@ -125,7 +125,7 @@ static int elevel = -1;
|
||||
|
||||
static TransactionId OldestXmin;
|
||||
static TransactionId FreezeLimit;
|
||||
static MultiXactId MultiXactFrzLimit;
|
||||
static MultiXactId MultiXactCutoff;
|
||||
|
||||
static BufferAccessStrategy vac_strategy;
|
||||
|
||||
@ -203,7 +203,7 @@ lazy_vacuum_rel(Relation onerel, VacuumStmt *vacstmt,
|
||||
vacuum_set_xid_limits(vacstmt->freeze_min_age, vacstmt->freeze_table_age,
|
||||
onerel->rd_rel->relisshared,
|
||||
&OldestXmin, &FreezeLimit, &freezeTableLimit,
|
||||
&MultiXactFrzLimit);
|
||||
&MultiXactCutoff);
|
||||
scan_all = TransactionIdPrecedesOrEquals(onerel->rd_rel->relfrozenxid,
|
||||
freezeTableLimit);
|
||||
|
||||
@ -273,7 +273,7 @@ lazy_vacuum_rel(Relation onerel, VacuumStmt *vacstmt,
|
||||
if (vacrelstats->scanned_pages < vacrelstats->rel_pages)
|
||||
new_frozen_xid = InvalidTransactionId;
|
||||
|
||||
new_min_multi = MultiXactFrzLimit;
|
||||
new_min_multi = MultiXactCutoff;
|
||||
if (vacrelstats->scanned_pages < vacrelstats->rel_pages)
|
||||
new_min_multi = InvalidMultiXactId;
|
||||
|
||||
@ -867,7 +867,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
|
||||
* freezing. Note we already have exclusive buffer lock.
|
||||
*/
|
||||
if (heap_freeze_tuple(tuple.t_data, FreezeLimit,
|
||||
MultiXactFrzLimit))
|
||||
MultiXactCutoff))
|
||||
frozen[nfrozen++] = offnum;
|
||||
}
|
||||
} /* scan along page */
|
||||
@ -885,7 +885,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
|
||||
XLogRecPtr recptr;
|
||||
|
||||
recptr = log_heap_freeze(onerel, buf, FreezeLimit,
|
||||
MultiXactFrzLimit, frozen, nfrozen);
|
||||
MultiXactCutoff, frozen, nfrozen);
|
||||
PageSetLSN(page, recptr);
|
||||
}
|
||||
}
|
||||
@ -1230,7 +1230,7 @@ lazy_check_needs_freeze(Buffer buf)
|
||||
tupleheader = (HeapTupleHeader) PageGetItem(page, itemid);
|
||||
|
||||
if (heap_tuple_needs_freeze(tupleheader, FreezeLimit,
|
||||
MultiXactFrzLimit, buf))
|
||||
MultiXactCutoff, buf))
|
||||
return true;
|
||||
} /* scan along page */
|
||||
|
||||
|
Reference in New Issue
Block a user