summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorArne Juul <arnej@yahoo-inc.com>2017-12-05 12:32:32 +0000
committerArne Juul <arnej@yahoo-inc.com>2017-12-05 12:32:32 +0000
commitf6c6977e45a323240ae5a8966a6cb92f02029c53 (patch)
tree810c48c0a27cfeda9108164d400358be72d8f610 /searchcore
parente1d13c1063775670dccce14d40844466892b3332 (diff)
must not use mtf after giving it away
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/matcher.cpp2
1 files changed, 1 insertions, 1 deletions
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<SearchSession>(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);