@@ -3610,6 +3610,11 @@ vac_cmp_itemptr(const void *left, const void *right)
3610
3610
* transactions. Also return the visibility_cutoff_xid which is the highest
3611
3611
* xmin amongst the visible tuples. Set *all_frozen to true if every tuple
3612
3612
* on this page is frozen.
3613
+ *
3614
+ * This is a stripped down version of lazy_scan_prune(). If you change
3615
+ * anything here, make sure that everything stays in sync. Note that an
3616
+ * assertion calls us to verify that everybody still agrees. Be sure to avoid
3617
+ * introducing new side-effects here.
3613
3618
*/
3614
3619
static bool
3615
3620
heap_page_is_all_visible (LVRelState * vacrel ,Buffer buf ,
@@ -3625,10 +3630,6 @@ heap_page_is_all_visible(LVRelState *vacrel, Buffer buf,
3625
3630
* visibility_cutoff_xid = InvalidTransactionId ;
3626
3631
* all_frozen = true;
3627
3632
3628
- /*
3629
- * This is a stripped down version of the line pointer scan in
3630
- * lazy_scan_heap(). So if you change anything here, also check that code.
3631
- */
3632
3633
maxoff = PageGetMaxOffsetNumber (page );
3633
3634
for (offnum = FirstOffsetNumber ;
3634
3635
offnum <=maxoff && all_visible ;