summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2022-05-23 22:53:54 +0200
committerGitHub <noreply@github.com>2022-05-23 22:53:54 +0200
commitfcd7da640ad82621a40e7a72df07fb2b1cd985c5 (patch)
tree03ddce1b70f3e4e24288b57a8a75a9a40cec1bf9
parent452f98a1795d6b4e8b282e83da704a7a52943770 (diff)
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; }