mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Update another obsolete reference in vacuumlazy.c.
Addresses an oversight in commit 7ab96cf6
.
This commit is contained in:
parent
beb4e9ba16
commit
eb9baef8e9
@ -3610,6 +3610,11 @@ vac_cmp_itemptr(const void *left, const void *right)
|
|||||||
* transactions. Also return the visibility_cutoff_xid which is the highest
|
* transactions. Also return the visibility_cutoff_xid which is the highest
|
||||||
* xmin amongst the visible tuples. Set *all_frozen to true if every tuple
|
* xmin amongst the visible tuples. Set *all_frozen to true if every tuple
|
||||||
* on this page is frozen.
|
* on this page is frozen.
|
||||||
|
*
|
||||||
|
* This is a stripped down version of lazy_scan_prune(). If you change
|
||||||
|
* anything here, make sure that everything stays in sync. Note that an
|
||||||
|
* assertion calls us to verify that everybody still agrees. Be sure to avoid
|
||||||
|
* introducing new side-effects here.
|
||||||
*/
|
*/
|
||||||
static bool
|
static bool
|
||||||
heap_page_is_all_visible(LVRelState *vacrel, Buffer buf,
|
heap_page_is_all_visible(LVRelState *vacrel, Buffer buf,
|
||||||
@ -3625,10 +3630,6 @@ heap_page_is_all_visible(LVRelState *vacrel, Buffer buf,
|
|||||||
*visibility_cutoff_xid = InvalidTransactionId;
|
*visibility_cutoff_xid = InvalidTransactionId;
|
||||||
*all_frozen = true;
|
*all_frozen = true;
|
||||||
|
|
||||||
/*
|
|
||||||
* This is a stripped down version of the line pointer scan in
|
|
||||||
* lazy_scan_heap(). So if you change anything here, also check that code.
|
|
||||||
*/
|
|
||||||
maxoff = PageGetMaxOffsetNumber(page);
|
maxoff = PageGetMaxOffsetNumber(page);
|
||||||
for (offnum = FirstOffsetNumber;
|
for (offnum = FirstOffsetNumber;
|
||||||
offnum <= maxoff && all_visible;
|
offnum <= maxoff && all_visible;
|
||||||
|
Loading…
Reference in New Issue
Block a user