Skip to content

Commit 06b405b

Browse files
author
Konstantin Knizhnik
committed
Change prefetch logic for autovacuum
1 parent c52ccd7 commit 06b405b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/heap/vacuumlazy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ lazy_scan_heap(LVRelState *vacrel, VacuumParams *params, bool aggressive)
12461246
prefetch_budget = blkno + vacrel->io_concurrency - next_prefetch_block;
12471247

12481248
/* Do not perform prefetch if we are skipping current range */
1249-
if (skipping_current_range)
1249+
if (skipping_blocks)
12501250
prefetch_budget = 0;
12511251

12521252
for (; prefetch_budget-- > 0; next_prefetch_block++)

0 commit comments

Comments
 (0)