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

Commit38710a3

Browse files
committed
Remove unused argument from ginInsertCleanup()
It's an oversight in commitdc943ad.
1 parentc80b31d commit38710a3

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-
boolvac_delay,boolfill_fsm,
747-
IndexBulkDeleteResult*stats)
743+
boolfill_fsm,IndexBulkDeleteResult*stats)
748744
{
749745
Relationindex=ginstate->index;
750746
Buffermetabuffer,

‎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
returnstats;
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
OffsetNumberattnum,Datumvalue,boolisNull,
947947
ItemPointerht_ctid);
948948
externvoidginInsertCleanup(GinState*ginstate,
949-
boolvac_delay,boolfill_fsm,IndexBulkDeleteResult*stats);
949+
boolfill_fsm,IndexBulkDeleteResult*stats);
950950

951951
/* ginpostinglist.c */
952952

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp