Skip to content

Commit f8d89e6

Browse files
committed
Fix uninitialized variable in spgvacuum.c (#250)
The compiler warning was correct and would have the potential to disable prefetching.
1 parent 3559ff9 commit f8d89e6

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)