diff options
Diffstat (limited to 'src/mongo/db/query/explain.cpp')
-rw-r--r-- | src/mongo/db/query/explain.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/query/explain.cpp b/src/mongo/db/query/explain.cpp index f1d75379be6..31ded552406 100644 --- a/src/mongo/db/query/explain.cpp +++ b/src/mongo/db/query/explain.cpp @@ -94,13 +94,13 @@ void generatePlannerInfo(PlanExecutor* exec, if (collection && exec->getCanonicalQuery()) { const QuerySettings* querySettings = QuerySettingsDecoration::get(collection->getSharedDecorations()); - const PlanCacheKey planCacheKey = - plan_cache_key_factory::make(*exec->getCanonicalQuery(), collection); - planCacheKeyHash = planCacheKey.planCacheKeyHash(); - queryHash = planCacheKey.queryHash(); + const auto planCacheKeyInfo = + plan_cache_key_factory::make<PlanCacheKey>(*exec->getCanonicalQuery(), collection); + planCacheKeyHash = planCacheKeyInfo.planCacheKeyHash(); + queryHash = planCacheKeyInfo.queryHash(); if (auto allowedIndicesFilter = - querySettings->getAllowedIndicesFilter(planCacheKey.getQueryShape())) { + querySettings->getAllowedIndicesFilter(planCacheKeyInfo.getQueryShape())) { // Found an index filter set on the query shape. indexFilterSet = true; } |