summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-05-23 23:19:14 +0200
committerGitHub <noreply@github.com>2022-05-23 23:19:14 +0200
commit6d02bfda010abc16ab9d37789916ee0d5f56cb8a (patch)
tree03ddce1b70f3e4e24288b57a8a75a9a40cec1bf9
parent452f98a1795d6b4e8b282e83da704a7a52943770 (diff)
parentfcd7da640ad82621a40e7a72df07fb2b1cd985c5 (diff)
Merge pull request #22724 from vespa-engine/revert-22716-balder/let-whitelist-blueprint-be-less-conservative
Revert "Count number of bits to create a better estimate of number of hits it…"
-rw-r--r--searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp
index 84fe39c56b6..57f8be576db 100644
--- a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp
+++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp
@@ -198,8 +198,7 @@ public:
_activeLids(activeLids),
_matchDataVector()
{
- size_t numHits = _activeLids.countTrueBits();
- setEstimate(HitEstimate(numHits, (numHits == 0)));
+ setEstimate(HitEstimate(_activeLids.size(), false));
}
bool isWhiteList() const override { return true; }