Skip to content

Commit 38710a3

Browse files
committed
Remove unused argument from ginInsertCleanup()
It's an oversight in commit dc943ad.
1 parent c80b31d commit 38710a3

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

src/backend/access/gin/ginfast.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ ginHeapTupleFastInsert(GinState *ginstate, GinTupleCollector *collector)
434434
END_CRIT_SECTION();
435435

436436
if (needCleanup)
437-
ginInsertCleanup(ginstate, false, true, NULL);
437+
ginInsertCleanup(ginstate, true, NULL);
438438
}
439439

440440
/*
@@ -732,9 +732,6 @@ processPendingPage(BuildAccumulator *accum, KeyArray *ka,
732732
* action of removing a page from the pending list really needs exclusive
733733
* lock.
734734
*
735-
* vac_delay indicates that ginInsertCleanup should call
736-
* vacuum_delay_point() periodically.
737-
*
738735
* fill_fsm indicates that ginInsertCleanup should add deleted pages
739736
* to FSM otherwise caller is responsible to put deleted pages into
740737
* FSM.
@@ -743,8 +740,7 @@ processPendingPage(BuildAccumulator *accum, KeyArray *ka,
743740
*/
744741
void
745742
ginInsertCleanup(GinState *ginstate,
746-
bool vac_delay, bool fill_fsm,
747-
IndexBulkDeleteResult *stats)
743+
bool fill_fsm, IndexBulkDeleteResult *stats)
748744
{
749745
Relation index = ginstate->index;
750746
Buffer metabuffer,

src/backend/access/gin/ginvacuum.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ ginbulkdelete(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
541541
/* Yes, so initialize stats to zeroes */
542542
stats = (IndexBulkDeleteResult *) palloc0(sizeof(IndexBulkDeleteResult));
543543
/* and cleanup any pending inserts */
544-
ginInsertCleanup(&gvs.ginstate, true, false, stats);
544+
ginInsertCleanup(&gvs.ginstate, false, stats);
545545
}
546546

547547
/* we'll re-count the tuples each time */
@@ -654,7 +654,7 @@ ginvacuumcleanup(IndexVacuumInfo *info, IndexBulkDeleteResult *stats)
654654
if (IsAutoVacuumWorkerProcess())
655655
{
656656
initGinState(&ginstate, index);
657-
ginInsertCleanup(&ginstate, true, true, stats);
657+
ginInsertCleanup(&ginstate, true, stats);
658658
}
659659
return stats;
660660
}
@@ -667,7 +667,7 @@ ginvacuumcleanup(IndexVacuumInfo *info, IndexBulkDeleteResult *stats)
667667
{
668668
stats = (IndexBulkDeleteResult *) palloc0(sizeof(IndexBulkDeleteResult));
669669
initGinState(&ginstate, index);
670-
ginInsertCleanup(&ginstate, true, false, stats);
670+
ginInsertCleanup(&ginstate, false, stats);
671671
}
672672

673673
memset(&idxStat, 0, sizeof(idxStat));

src/include/access/gin_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ extern void ginHeapTupleFastCollect(GinState *ginstate,
946946
OffsetNumber attnum, Datum value, bool isNull,
947947
ItemPointer ht_ctid);
948948
extern void ginInsertCleanup(GinState *ginstate,
949-
bool vac_delay, bool fill_fsm, IndexBulkDeleteResult *stats);
949+
bool fill_fsm, IndexBulkDeleteResult *stats);
950950

951951
/* ginpostinglist.c */
952952

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