Skip to content
Snippets Groups Projects
Commit f942dfb9 authored by Michael Paquier's avatar Michael Paquier
Browse files

Clarify some comments in vacuumlazy.c

parent 611ce856
Branches
No related tags found
No related merge requests found
...@@ -1507,8 +1507,8 @@ lazy_scan_heap(Relation onerel, VacuumParams *params, LVRelStats *vacrelstats, ...@@ -1507,8 +1507,8 @@ lazy_scan_heap(Relation onerel, VacuumParams *params, LVRelStats *vacrelstats,
/* /*
* It should never be the case that the visibility map page is set * It should never be the case that the visibility map page is set
* while the page-level bit is clear, but the reverse is allowed * while the page-level bit is clear, but the reverse is allowed
* (if checksums are not enabled). Regardless, set the both bits * (if checksums are not enabled). Regardless, set both bits so
* so that we get back in sync. * that we get back in sync.
* *
* NB: If the heap page is all-visible but the VM bit is not set, * NB: If the heap page is all-visible but the VM bit is not set,
* we don't need to dirty the heap page. However, if checksums * we don't need to dirty the heap page. However, if checksums
...@@ -1563,9 +1563,9 @@ lazy_scan_heap(Relation onerel, VacuumParams *params, LVRelStats *vacrelstats, ...@@ -1563,9 +1563,9 @@ lazy_scan_heap(Relation onerel, VacuumParams *params, LVRelStats *vacrelstats,
} }
/* /*
* If the all-visible page is turned out to be all-frozen but not * If the all-visible page is all-frozen but not marked as such yet,
* marked, we should so mark it. Note that all_frozen is only valid * mark it as all-frozen. Note that all_frozen is only valid if
* if all_visible is true, so we must check both. * all_visible is true, so we must check both.
*/ */
else if (all_visible_according_to_vm && all_visible && all_frozen && else if (all_visible_according_to_vm && all_visible && all_frozen &&
!VM_ALL_FROZEN(onerel, blkno, &vmbuffer)) !VM_ALL_FROZEN(onerel, blkno, &vmbuffer))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment