Skip to content

Commit be060cb

Browse files
committed
Re-pgindent vacuumlazy.c.
1 parent accf761 commit be060cb

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
static bool lazy_tid_reaped(ItemPointer itemptr, void *state);
158158
static int vac_cmp_itemptr(const void *left, const void *right);
159159
static bool heap_page_is_all_visible(Relation rel, Buffer buf,
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-
uint8 flags = VISIBILITYMAP_ALL_VISIBLE;
1028+
uint8 flags = 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-
* the all-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-
uint8 vm_status = visibilitymap_get_status(onerel, blkno, vmbuffer);
1354-
uint8 flags = 0;
1353+
uint8 vm_status = visibilitymap_get_status(onerel, blkno, vmbuffer);
1354+
uint8 flags = 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-
* to be all-visible, so do that now if necessary. The page might fail
1991-
* to be all-frozen for other reasons anyway, but if it's not all-visible,
1992-
* then it 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)
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