diff options
author | Alexander Ignatyev <alexander.ignatyev@mongodb.com> | 2021-11-19 08:47:17 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-11-19 09:25:43 +0000 |
commit | 06c3e023d5500e882e16073f8372863bb718602d (patch) | |
tree | 8163fd8f55727ea7bb82612fca426c47dfe0c040 /src/mongo/db/query/sbe_plan_cache.cpp | |
parent | 715b93534c8db1a10e243468b78c70f52a6880d4 (diff) | |
download | mongo-06c3e023d5500e882e16073f8372863bb718602d.tar.gz |
SERVER-61556 Fix SBE lib dependencies
Diffstat (limited to 'src/mongo/db/query/sbe_plan_cache.cpp')
-rw-r--r-- | src/mongo/db/query/sbe_plan_cache.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
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<std::unique_ptr<sbe::PlanCache>>(); -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<PlanCacheSizeUpdaterImpl>(); - PlanCacheInvalidatorCallback::set( - serviceCtx, std::make_unique<SbePlanCacheInvalidatorCallback>(serviceCtx)); if (feature_flags::gFeatureFlagSbePlanCache.isEnabledAndIgnoreFCV()) { auto status = plan_cache_util::PlanCacheSizeParameter::parse(planCacheSize.get()); uassertStatusOK(status); |