Skip to content

Commit

Permalink
Fix uninitialized variable in spgvacuum.c (#250)
Browse files Browse the repository at this point in the history
The compiler warning was correct and would have the potential to disable prefetching.
  • Loading branch information
MMeent authored Dec 7, 2022
1 parent 299bf4f commit 544ec69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/access/spgist/spgvacuum.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,8 @@ spgvacuumscan(spgBulkDeleteState *bds)
* in btvacuumscan().
*/
blkno = SPGIST_METAPAGE_BLKNO + 1;
prefetch_blkno = blkno;

for (;;)
{
/* Get the current relation length */
Expand Down

0 comments on commit 544ec69

Please sign in to comment.