]> granicus.if.org Git - postgresql/commitdiff
Fix thinko in BitmapAdjustPrefetchIterator.
authorRobert Haas <rhaas@postgresql.org>
Tue, 4 Apr 2017 13:03:41 +0000 (09:03 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 4 Apr 2017 13:07:18 +0000 (09:07 -0400)
Dilip Kumar

Discussion: http://postgr.es/m/CAFiTN-uKAvRhWprb0i-U9zFOekgQRRwqjP1wvOBsKZb-UEKbug@mail.gmail.com

src/backend/executor/nodeBitmapHeapscan.c

index 19eb1755bea869e1c5fe35ff3b74ea6dc00563c0..d240f9c03e61f200c85fd6f5c869f23781425734 100644 (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