From a9a7949134189c29a9b38ac7394c53849684fe4d Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Tue, 4 Apr 2017 09:03:41 -0400 Subject: [PATCH] Fix thinko in BitmapAdjustPrefetchIterator. Dilip Kumar Discussion: http://postgr.es/m/CAFiTN-uKAvRhWprb0i-U9zFOekgQRRwqjP1wvOBsKZb-UEKbug@mail.gmail.com --- src/backend/executor/nodeBitmapHeapscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/executor/nodeBitmapHeapscan.c b/src/backend/executor/nodeBitmapHeapscan.c index 19eb1755be..d240f9c03e 100644 --- a/src/backend/executor/nodeBitmapHeapscan.c +++ b/src/backend/executor/nodeBitmapHeapscan.c @@ -494,7 +494,7 @@ BitmapAdjustPrefetchIterator(BitmapHeapScanState *node, SpinLockAcquire(&pstate->mutex); if (pstate->prefetch_pages > 0) { - node->prefetch_pages--; + pstate->prefetch_pages--; SpinLockRelease(&pstate->mutex); } else -- 2.40.0