Skip to content

Commit f942dfb

Browse files
committed
Clarify some comments in vacuumlazy.c
Author: Justin Pryzby Discussion: https://postgr.es/m/20200113004542.GA26045@telsasoft.com
1 parent 611ce85 commit f942dfb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/access/heap/vacuumlazy.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,8 +1507,8 @@ lazy_scan_heap(Relation onerel, VacuumParams *params, LVRelStats *vacrelstats,
15071507
/*
15081508
* It should never be the case that the visibility map page is set
15091509
* while the page-level bit is clear, but the reverse is allowed
1510-
* (if checksums are not enabled). Regardless, set the both bits
1511-
* so that we get back in sync.
1510+
* (if checksums are not enabled). Regardless, set both bits so
1511+
* that we get back in sync.
15121512
*
15131513
* NB: If the heap page is all-visible but the VM bit is not set,
15141514
* 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,
15631563
}
15641564

15651565
/*
1566-
* If the all-visible page is turned out to be all-frozen but not
1567-
* marked, we should so mark it. Note that all_frozen is only valid
1568-
* if all_visible is true, so we must check both.
1566+
* If the all-visible page is all-frozen but not marked as such yet,
1567+
* mark it as all-frozen. Note that all_frozen is only valid if
1568+
* all_visible is true, so we must check both.
15691569
*/
15701570
else if (all_visible_according_to_vm && all_visible && all_frozen &&
15711571
!VM_ALL_FROZEN(onerel, blkno, &vmbuffer))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy