summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp2
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/query.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp b/searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp
index 86b21445919..fa95d729c2c 100644
--- a/searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp
+++ b/searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp
@@ -230,7 +230,7 @@ MatchToolsFactory(QueryLimiter & queryLimiter,
_match_limiter = std::make_unique<NoMatchPhaseLimiter>();
}
trace.addEvent(4, "Complete query setup");
- if (root_trace.shouldTrace(4)) {
+ if (trace.hasTrace()) {
vespalib::slime::ObjectInserter inserter(root_trace.createCursor("query_setup"), "traces");
vespalib::slime::inject(trace.getTraces(), inserter);
}
diff --git a/searchcore/src/vespa/searchcore/proton/matching/query.cpp b/searchcore/src/vespa/searchcore/proton/matching/query.cpp
index 9217b985ba5..b7e3f32a6f6 100644
--- a/searchcore/src/vespa/searchcore/proton/matching/query.cpp
+++ b/searchcore/src/vespa/searchcore/proton/matching/query.cpp
@@ -292,7 +292,7 @@ Query::handle_global_filter(Blueprint& blueprint, uint32_t docid_limit,
trace->addEvent(5, vespalib::make_string("Calculate global filter (estimated_hit_ratio (%f) <= upper_limit (%f))",
estimated_hit_ratio, global_filter_upper_limit));
}
- global_filter = GlobalFilter::create(blueprint, docid_limit, thread_bundle);
+ global_filter = GlobalFilter::create(blueprint, docid_limit, thread_bundle, trace);
if (!global_filter->is_active() && trace && trace->shouldTrace(5)) {
trace->addEvent(5, "Global filter matches everything");
}