From 91bd3c16d95d2b0ad6b567247630eb00be5805d6 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Fri, 3 Jan 2025 21:14:07 +0100 Subject: [PATCH] Revert "give a better estimate in WhiteListBlueprint" --- .../searchcore/proton/documentmetastore/lid_allocator.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp index aa59fb810dd5..758d1336399b 100644 --- a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp +++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp @@ -221,14 +221,14 @@ class WhiteListBlueprint : public SimpleLeafBlueprint return create_search_helper(strict()); } public: - WhiteListBlueprint(const search::BitVector &activeLids, bool all_lids_active, uint32_t numActiveLids) + WhiteListBlueprint(const search::BitVector &activeLids, bool all_lids_active) : SimpleLeafBlueprint(), _activeLids(activeLids), _all_lids_active(all_lids_active), _lock(), _matchDataVector() { - setEstimate(HitEstimate(numActiveLids, false)); + setEstimate(HitEstimate(_activeLids.size(), false)); } bool isWhiteList() const noexcept final { return true; } @@ -253,8 +253,7 @@ Blueprint::UP LidAllocator::createWhiteListBlueprint() const { return std::make_unique(_activeLids.getBitVector(), - (getNumUsedLids() == getNumActiveLids()), - getNumActiveLids()); + (getNumUsedLids() == getNumActiveLids())); } void