From f6c6977e45a323240ae5a8966a6cb92f02029c53 Mon Sep 17 00:00:00 2001 From: Arne Juul Date: Tue, 5 Dec 2017 12:32:32 +0000 Subject: must not use mtf after giving it away --- searchcore/src/vespa/searchcore/proton/matching/matcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searchcore') diff --git a/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp b/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp index b7022b525d1..2a3df5aeb52 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp @@ -270,6 +270,7 @@ Matcher::match(const SearchRequest &request, my_stats = MatchMaster::getStats(std::move(master)); bool wasLimited = mtf->match_limiter().was_limited(); + size_t spaceEstimate = mtf->match_limiter().getDocIdSpaceEstimate(); uint32_t estHits = mtf->estimate().estHits; if (shouldCacheSearchSession && ((result->_numFs4Hits != 0) || shouldCacheGroupingSession)) { SearchSession::SP session = std::make_shared(sessionId, request.getTimeOfDoom(), @@ -290,7 +291,6 @@ Matcher::match(const SearchRequest &request, uint32_t numActiveLids = metaStore.getNumActiveLids(); // note: this is actually totalSpace+1, since 0 is reserved uint32_t totalSpace = metaStore.getCommittedDocIdLimit(); - size_t spaceEstimate = mtf->match_limiter().getDocIdSpaceEstimate(); LOG(debug, "docid limit = %d", totalSpace); LOG(debug, "num active lids = %d", numActiveLids); LOG(debug, "space Estimate = %zd", spaceEstimate); -- cgit v1.2.3