Commit a9a79491 authored by Robert Haas's avatar Robert Haas

Fix thinko in BitmapAdjustPrefetchIterator.

Dilip Kumar

Discussion: http://postgr.es/m/CAFiTN-uKAvRhWprb0i-U9zFOekgQRRwqjP1wvOBsKZb-UEKbug@mail.gmail.com
parent d1f103c7
...@@ -494,7 +494,7 @@ BitmapAdjustPrefetchIterator(BitmapHeapScanState *node, ...@@ -494,7 +494,7 @@ BitmapAdjustPrefetchIterator(BitmapHeapScanState *node,
SpinLockAcquire(&pstate->mutex); SpinLockAcquire(&pstate->mutex);
if (pstate->prefetch_pages > 0) if (pstate->prefetch_pages > 0)
{ {
node->prefetch_pages--; pstate->prefetch_pages--;
SpinLockRelease(&pstate->mutex); SpinLockRelease(&pstate->mutex);
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment