From: Robert Haas Date: Tue, 4 Apr 2017 13:03:41 +0000 (-0400) Subject: Fix thinko in BitmapAdjustPrefetchIterator. X-Git-Tag: REL_10_BETA1~395 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9a7949134189c29a9b38ac7394c53849684fe4d;p=postgresql Fix thinko in BitmapAdjustPrefetchIterator. Dilip Kumar Discussion: http://postgr.es/m/CAFiTN-uKAvRhWprb0i-U9zFOekgQRRwqjP1wvOBsKZb-UEKbug@mail.gmail.com --- 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