aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-03-11 16:57:01 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-03-11 16:57:01 +0000
commitbcc209d6aa645967639d8cf9197d355132fa5b5e (patch)
tree6a001b5604f0905dedf5c280e6cbf0d791cf6106 /searchcore
parentdccbbf7aa8ac1f1ed2b31df9ccf7617201da39b3 (diff)
Do not retrace non-limited queries and add braces.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp b/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp
index 398ebe6048e..e85204d42e8 100644
--- a/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp
+++ b/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp
@@ -129,7 +129,7 @@ MatchThread::maybe_limit(MatchTools &tools, uint32_t matches, uint32_t docId, ui
tools.tag_search_as_changed();
}
}
- if (isFirstThread() && trace->shouldTrace(6)) {
+ if (isFirstThread() && trace->shouldTrace(6) && tools.match_limiter().was_limited()) {
vespalib::slime::ObjectInserter inserter(trace->createCursor("limited"), "query");
tools.search().asSlime(inserter);
}