1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

Remove unnecessary heap_tuple_needs_freeze argument.

The buffer argument hasn't been used since the function was first added
by commit bbb6e559c4.  The sibling heap_prepare_freeze_tuple function
doesn't have such an argument either.  Remove it.
This commit is contained in:
Peter Geoghegan
2022-02-24 18:31:07 -08:00
parent 31d8d4740f
commit cf879d3069
3 changed files with 3 additions and 3 deletions

View File

@ -7141,7 +7141,7 @@ heap_tuple_needs_eventual_freeze(HeapTupleHeader tuple)
*/ */
bool bool
heap_tuple_needs_freeze(HeapTupleHeader tuple, TransactionId cutoff_xid, heap_tuple_needs_freeze(HeapTupleHeader tuple, TransactionId cutoff_xid,
MultiXactId cutoff_multi, Buffer buf) MultiXactId cutoff_multi)
{ {
TransactionId xid; TransactionId xid;

View File

@ -2015,7 +2015,7 @@ lazy_scan_noprune(LVRelState *vacrel,
tupleheader = (HeapTupleHeader) PageGetItem(page, itemid); tupleheader = (HeapTupleHeader) PageGetItem(page, itemid);
if (heap_tuple_needs_freeze(tupleheader, if (heap_tuple_needs_freeze(tupleheader,
vacrel->FreezeLimit, vacrel->FreezeLimit,
vacrel->MultiXactCutoff, buf)) vacrel->MultiXactCutoff))
{ {
if (vacrel->aggressive) if (vacrel->aggressive)
{ {

View File

@ -168,7 +168,7 @@ extern bool heap_freeze_tuple(HeapTupleHeader tuple,
TransactionId relfrozenxid, TransactionId relminmxid, TransactionId relfrozenxid, TransactionId relminmxid,
TransactionId cutoff_xid, TransactionId cutoff_multi); TransactionId cutoff_xid, TransactionId cutoff_multi);
extern bool heap_tuple_needs_freeze(HeapTupleHeader tuple, TransactionId cutoff_xid, extern bool heap_tuple_needs_freeze(HeapTupleHeader tuple, TransactionId cutoff_xid,
MultiXactId cutoff_multi, Buffer buf); MultiXactId cutoff_multi);
extern bool heap_tuple_needs_eventual_freeze(HeapTupleHeader tuple); extern bool heap_tuple_needs_eventual_freeze(HeapTupleHeader tuple);
extern void simple_heap_insert(Relation relation, HeapTuple tup); extern void simple_heap_insert(Relation relation, HeapTuple tup);