diff options
Diffstat (limited to 'src/mongo/db/query/plan_cache.cpp')
-rw-r--r-- | src/mongo/db/query/plan_cache.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/query/plan_cache.cpp b/src/mongo/db/query/plan_cache.cpp index b1bdb1f1ef5..4544c82ed02 100644 --- a/src/mongo/db/query/plan_cache.cpp +++ b/src/mongo/db/query/plan_cache.cpp @@ -690,7 +690,8 @@ PlanCacheKey PlanCache::computeKey(const CanonicalQuery& cq) const { StringBuilder indexabilityKeyBuilder; encodeIndexability(cq.root(), _indexabilityState, &indexabilityKeyBuilder); - return PlanCacheKey(std::move(shapeString), indexabilityKeyBuilder.str()); + return PlanCacheKey( + std::move(shapeString), indexabilityKeyBuilder.str(), cq.getForceClassicEngine()); } StatusWith<std::unique_ptr<PlanCacheEntry>> PlanCache::getEntry(const CanonicalQuery& query) const { |