mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Fix thinko in BitmapAdjustPrefetchIterator.
Dilip Kumar Discussion: http://postgr.es/m/CAFiTN-uKAvRhWprb0i-U9zFOekgQRRwqjP1wvOBsKZb-UEKbug@mail.gmail.com
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user