Skip to content

Commit 6724b09

Browse files
MMeenttristan957
authored andcommitted
Fix uninitialized variable in spgvacuum.c (#250)
The compiler warning was correct and would have the potential to disable prefetching.
1 parent 7fb98d8 commit 6724b09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/access/spgist/spgvacuum.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,8 @@ spgvacuumscan(spgBulkDeleteState *bds)
829829
* in btvacuumscan().
830830
*/
831831
blkno = SPGIST_METAPAGE_BLKNO + 1;
832+
prefetch_blkno = blkno;
833+
832834
for (;;)
833835
{
834836
/* Get the current relation length */

0 commit comments

Comments
 (0)