🌐 AI搜索 & 代理 主页
Skip to content

Commit 1e14edc

Browse files
Split PruneFreezeParams initializers to one field per line
This conforms more closely with the style of other struct initializers in the code base. Initializing multiple fields on a single line is unpopular in part because pgindent won't permit a space after the comma before the next field's period. Author: Melanie Plageman <melanieplageman@gmail.com> Reported-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Discussion: https://postgr.es/m/87see87fnq.fsf%40wibble.ilmari.org
1 parent 5d4dc11 commit 1e14edc

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

src/backend/access/heap/pruneheap.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,13 @@ heap_page_prune_opt(Relation relation, Buffer buffer)
269269
* cannot safely determine that during on-access pruning with the
270270
* current implementation.
271271
*/
272-
PruneFreezeParams params = {.relation = relation,.buffer = buffer,
273-
.reason = PRUNE_ON_ACCESS,.options = 0,
274-
.vistest = vistest,.cutoffs = NULL
272+
PruneFreezeParams params = {
273+
.relation = relation,
274+
.buffer = buffer,
275+
.reason = PRUNE_ON_ACCESS,
276+
.options = 0,
277+
.vistest = vistest,
278+
.cutoffs = NULL,
275279
};
276280

277281
heap_page_prune_and_freeze(&params, &presult, &dummy_off_loc,

src/backend/access/heap/vacuumlazy.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1965,9 +1965,13 @@ lazy_scan_prune(LVRelState *vacrel,
19651965
{
19661966
Relation rel = vacrel->rel;
19671967
PruneFreezeResult presult;
1968-
PruneFreezeParams params = {.relation = rel,.buffer = buf,
1969-
.reason = PRUNE_VACUUM_SCAN,.options = HEAP_PAGE_PRUNE_FREEZE,
1970-
.vistest = vacrel->vistest,.cutoffs = &vacrel->cutoffs
1968+
PruneFreezeParams params = {
1969+
.relation = rel,
1970+
.buffer = buf,
1971+
.reason = PRUNE_VACUUM_SCAN,
1972+
.options = HEAP_PAGE_PRUNE_FREEZE,
1973+
.vistest = vacrel->vistest,
1974+
.cutoffs = &vacrel->cutoffs,
19711975
};
19721976

19731977
Assert(BufferGetBlockNumber(buf) == blkno);

0 commit comments

Comments
 (0)