Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf942dfb

Browse files
committed
Clarify some comments in vacuumlazy.c
Author: Justin PryzbyDiscussion:https://postgr.es/m/20200113004542.GA26045@telsasoft.com
1 parent611ce85 commitf942dfb

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, settheboth bits
1511-
*sothat 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 isturned out to beall-frozen but not
1567-
*marked, we should somark it. Note that all_frozen is only valid
1568-
*ifall_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
elseif (all_visible_according_to_vm&&all_visible&&all_frozen&&
15711571
!VM_ALL_FROZEN(onerel,blkno,&vmbuffer))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp