diff options
Diffstat (limited to 'src/mongo/db/pipeline/process_interface/common_mongod_process_interface.cpp')
-rw-r--r-- | src/mongo/db/pipeline/process_interface/common_mongod_process_interface.cpp | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/src/mongo/db/pipeline/process_interface/common_mongod_process_interface.cpp b/src/mongo/db/pipeline/process_interface/common_mongod_process_interface.cpp index 1ce2581a1e7..471727946c4 100644 --- a/src/mongo/db/pipeline/process_interface/common_mongod_process_interface.cpp +++ b/src/mongo/db/pipeline/process_interface/common_mongod_process_interface.cpp @@ -569,22 +569,21 @@ std::vector<BSONObj> CommonMongodProcessInterface::getMatchingPlanCacheEntryStat auto planCacheEntries = planCache->getMatchingStats({} /* cacheKeyFilterFunc */, serializer, predicate); - if (feature_flags::gFeatureFlagSbeFull.isEnabledAndIgnoreFCV()) { - // Retrieve plan cache entries from the SBE plan cache. - const auto cacheKeyFilter = [uuid = collection->uuid(), - collVersion = collQueryInfo.getPlanCacheInvalidatorVersion()]( - const sbe::PlanCacheKey& key) { - // Only fetch plan cache entries with keys matching given UUID and collectionVersion. - return uuid == key.getMainCollectionState().uuid && - collVersion == key.getMainCollectionState().version; - }; - - auto planCacheEntriesSBE = - sbe::getPlanCache(opCtx).getMatchingStats(cacheKeyFilter, serializer, predicate); - - planCacheEntries.insert( - planCacheEntries.end(), planCacheEntriesSBE.begin(), planCacheEntriesSBE.end()); - } + // Retrieve plan cache entries from the SBE plan cache. + const auto cacheKeyFilter = [uuid = collection->uuid(), + collVersion = collQueryInfo.getPlanCacheInvalidatorVersion()]( + const sbe::PlanCacheKey& key) { + // Only fetch plan cache entries with keys matching given UUID and collectionVersion. + return uuid == key.getMainCollectionState().uuid && + collVersion == key.getMainCollectionState().version; + }; + + auto planCacheEntriesSBE = + sbe::getPlanCache(opCtx).getMatchingStats(cacheKeyFilter, serializer, predicate); + + planCacheEntries.insert( + planCacheEntries.end(), planCacheEntriesSBE.begin(), planCacheEntriesSBE.end()); + return planCacheEntries; } |