aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
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);
}