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

Commitbe060cb

Browse files
committed
Re-pgindent vacuumlazy.c.
1 parentaccf761 commitbe060cb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎src/backend/commands/vacuumlazy.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static void lazy_record_dead_tuple(LVRelStats *vacrelstats,
157157
staticboollazy_tid_reaped(ItemPointeritemptr,void*state);
158158
staticintvac_cmp_itemptr(constvoid*left,constvoid*right);
159159
staticboolheap_page_is_all_visible(Relationrel,Bufferbuf,
160-
TransactionId*visibility_cutoff_xid,bool*all_frozen);
160+
TransactionId*visibility_cutoff_xid,bool*all_frozen);
161161

162162

163163
/*
@@ -559,7 +559,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
559559
next_not_all_visible_block<nblocks;
560560
next_not_all_visible_block++)
561561
{
562-
if (!VM_ALL_VISIBLE(onerel,next_not_all_visible_block,&vmbuffer))
562+
if (!VM_ALL_VISIBLE(onerel,next_not_all_visible_block,&vmbuffer))
563563
break;
564564
vacuum_delay_point();
565565
}
@@ -772,7 +772,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
772772
PageSetAllVisible(page);
773773
visibilitymap_set(onerel,blkno,buf,InvalidXLogRecPtr,
774774
vmbuffer,InvalidTransactionId,
775-
VISIBILITYMAP_ALL_VISIBLE |VISIBILITYMAP_ALL_FROZEN);
775+
VISIBILITYMAP_ALL_VISIBLE |VISIBILITYMAP_ALL_FROZEN);
776776
END_CRIT_SECTION();
777777
}
778778

@@ -1025,7 +1025,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
10251025
/* mark page all-visible, if appropriate */
10261026
if (all_visible&& !all_visible_according_to_vm)
10271027
{
1028-
uint8flags=VISIBILITYMAP_ALL_VISIBLE;
1028+
uint8flags=VISIBILITYMAP_ALL_VISIBLE;
10291029

10301030
if (all_frozen)
10311031
flags |=VISIBILITYMAP_ALL_FROZEN;
@@ -1345,13 +1345,13 @@ lazy_vacuum_page(Relation onerel, BlockNumber blkno, Buffer buffer,
13451345

13461346
/*
13471347
* All the changes to the heap page have been done. If the all-visible
1348-
* flag is now set, also set the VM all-visible bit (and, if possible,
1349-
*theall-frozen bit) unless this has already been done previously.
1348+
* flag is now set, also set the VM all-visible bit (and, if possible, the
1349+
* all-frozen bit) unless this has already been done previously.
13501350
*/
13511351
if (PageIsAllVisible(page))
13521352
{
1353-
uint8vm_status=visibilitymap_get_status(onerel,blkno,vmbuffer);
1354-
uint8flags=0;
1353+
uint8vm_status=visibilitymap_get_status(onerel,blkno,vmbuffer);
1354+
uint8flags=0;
13551355

13561356
/* Set the VM all-frozen bit to flag, if needed */
13571357
if ((vm_status&VISIBILITYMAP_ALL_VISIBLE)==0)
@@ -1986,10 +1986,10 @@ heap_page_is_all_visible(Relation rel, Buffer buf,
19861986
}/* scan along page */
19871987

19881988
/*
1989-
* We don't bother clearing *all_frozen when the page is discovered not
1990-
*tobe all-visible, so do that now if necessary. The page might fail
1991-
*to beall-frozen for other reasons anyway, but if it's not all-visible,
1992-
*thenit definitely isn't all-frozen.
1989+
* We don't bother clearing *all_frozen when the page is discovered not to
1990+
* be all-visible, so do that now if necessary. The page might fail to be
1991+
* all-frozen for other reasons anyway, but if it's not all-visible, then
1992+
* it definitely isn't all-frozen.
19931993
*/
19941994
if (!all_visible)
19951995
*all_frozen= false;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp