From 06c3e023d5500e882e16073f8372863bb718602d Mon Sep 17 00:00:00 2001 From: Alexander Ignatyev Date: Fri, 19 Nov 2021 08:47:17 +0000 Subject: SERVER-61556 Fix SBE lib dependencies --- src/mongo/db/query/sbe_plan_cache.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/mongo/db/query/sbe_plan_cache.cpp') diff --git a/src/mongo/db/query/sbe_plan_cache.cpp b/src/mongo/db/query/sbe_plan_cache.cpp index 0c5edf92199..28f97cd886d 100644 --- a/src/mongo/db/query/sbe_plan_cache.cpp +++ b/src/mongo/db/query/sbe_plan_cache.cpp @@ -31,7 +31,6 @@ #include "mongo/db/query/sbe_plan_cache.h" -#include "mongo/db/query/plan_cache_invalidator.h" #include "mongo/db/query/plan_cache_size_parameter.h" #include "mongo/db/server_options.h" #include "mongo/logv2/log.h" @@ -43,18 +42,6 @@ namespace { const auto sbePlanCacheDecoration = ServiceContext::declareDecoration>(); -class SbePlanCacheInvalidatorCallback final : public PlanCacheInvalidatorCallback { -public: - SbePlanCacheInvalidatorCallback(ServiceContext* serviceCtx) : _serviceCtx{serviceCtx} {} - - void invalidateCacheEntriesWith(UUID collectionUuid, size_t oldVersion) override { - clearPlanCacheEntriesWith(_serviceCtx, collectionUuid, oldVersion); - } - -private: - ServiceContext* _serviceCtx; -}; - size_t convertToSizeInBytes(const plan_cache_util::PlanCacheSizeParameter& param) { constexpr size_t kBytesInMB = 1014 * 1024; constexpr size_t kMBytesInGB = 1014; @@ -129,8 +116,6 @@ ServiceContext::ConstructorActionRegisterer planCacheRegisterer{ plan_cache_util::sbePlanCacheSizeUpdaterDecoration(serviceCtx) = std::make_unique(); - PlanCacheInvalidatorCallback::set( - serviceCtx, std::make_unique(serviceCtx)); if (feature_flags::gFeatureFlagSbePlanCache.isEnabledAndIgnoreFCV()) { auto status = plan_cache_util::PlanCacheSizeParameter::parse(planCacheSize.get()); uassertStatusOK(status); -- cgit v1.2.1