Fix thinko in BitmapAdjustPrefetchIterator.

Dilip Kumar

Discussion: http://postgr.es/m/CAFiTN-uKAvRhWprb0i-U9zFOekgQRRwqjP1wvOBsKZb-UEKbug@mail.gmail.com
This commit is contained in:
Robert Haas 2017-04-04 09:03:41 -04:00
parent d1f103c739
commit a9a7949134

View File

@ -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