diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-04-04 09:03:41 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-04-04 09:07:18 -0400 |
commit | a9a7949134189c29a9b38ac7394c53849684fe4d (patch) | |
tree | 08fe4ce04978e0b5a0b9e3021d613c0caea751e2 /src/backend/executor/nodeBitmapHeapscan.c | |
parent | d1f103c7396b667e64141412a8a0d12a2eef2930 (diff) | |
download | postgresql-a9a7949134189c29a9b38ac7394c53849684fe4d.tar.gz postgresql-a9a7949134189c29a9b38ac7394c53849684fe4d.zip |
Fix thinko in BitmapAdjustPrefetchIterator.
Dilip Kumar
Discussion: http://postgr.es/m/CAFiTN-uKAvRhWprb0i-U9zFOekgQRRwqjP1wvOBsKZb-UEKbug@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeBitmapHeapscan.c')
-rw-r--r-- | src/backend/executor/nodeBitmapHeapscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/executor/nodeBitmapHeapscan.c b/src/backend/executor/nodeBitmapHeapscan.c index 19eb1755bea..d240f9c03e6 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 |