Skip to content

Commit

Permalink
Merge pull request #33005 from vespa-engine/toregge/only-show-cache-i…
Browse files Browse the repository at this point in the history
…n-custom-state-api-when-enabled

Only show cache in custom state api when enabled.
  • Loading branch information
geirst authored Dec 6, 2024
2 parents abb96af + 82edd70 commit 39d2615
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion searchcore/src/vespa/searchcore/proton/server/proton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,8 @@ Proton::get_child(std::string_view name) const
return std::make_unique<HwInfoExplorer>(_hw_info);
} else if (name == SESSION) {
return std::make_unique<matching::SessionManagerExplorer>(*_sessionManager);
} else if (name == CACHE_NAME && _posting_list_cache) {
} else if (name == CACHE_NAME && _posting_list_cache &&
(_posting_list_cache->enabled_for_posting_lists() || _posting_list_cache->enabled_for_bitvectors())) {
return std::make_unique<CacheExplorer>(*_posting_list_cache);
}
return {};
Expand Down

0 comments on commit 39d2615

Please sign in to comment.