mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Code cleanup for heap_freeze_tuple.
It used to be case that lazy vacuum could call this function with only a shared lock on the buffer, but neither lazy vacuum nor any other code path does that any more. Simplify the code accordingly and clean up some related, obsolete comments.
This commit is contained in:
@ -784,8 +784,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
|
||||
* Each non-removable tuple must be checked to see if it needs
|
||||
* freezing. Note we already have exclusive buffer lock.
|
||||
*/
|
||||
if (heap_freeze_tuple(tuple.t_data, FreezeLimit,
|
||||
InvalidBuffer))
|
||||
if (heap_freeze_tuple(tuple.t_data, FreezeLimit))
|
||||
frozen[nfrozen++] = offnum;
|
||||
}
|
||||
} /* scan along page */
|
||||
|
Reference in New Issue
Block a user