diff options
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp index 57f8be576db..84fe39c56b6 100644 --- a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp +++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp @@ -198,7 +198,8 @@ public: _activeLids(activeLids), _matchDataVector() { - setEstimate(HitEstimate(_activeLids.size(), false)); + size_t numHits = _activeLids.countTrueBits(); + setEstimate(HitEstimate(numHits, (numHits == 0))); } bool isWhiteList() const override { return true; } |