1
0
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:
Robert Haas
2012-03-26 11:03:06 -04:00
parent e8476f46fc
commit 7386089d23
4 changed files with 7 additions and 55 deletions

View File

@ -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 */