diff options
author | Ruoxin Xu <ruoxin.xu@mongodb.com> | 2021-10-11 13:40:09 +0100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-14 18:14:26 +0000 |
commit | e4c27a5c36dfe4c510809c8d1feb824a545b8b58 (patch) | |
tree | 770cfdef2cedf2894f7b5f1bd25a4d765769c666 /src/mongo/db/commands/index_filter_commands.cpp | |
parent | 257cf738d1d0fa3ec73446133dae8f6b5510b2c4 (diff) | |
download | mongo-e4c27a5c36dfe4c510809c8d1feb824a545b8b58.tar.gz |
SERVER-60338 Refine SBE query shape and implement plan cache key encoding
Diffstat (limited to 'src/mongo/db/commands/index_filter_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/index_filter_commands.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/commands/index_filter_commands.cpp b/src/mongo/db/commands/index_filter_commands.cpp index 2d93bd8a062..e2b150bd9c4 100644 --- a/src/mongo/db/commands/index_filter_commands.cpp +++ b/src/mongo/db/commands/index_filter_commands.cpp @@ -261,7 +261,7 @@ Status ClearFilters::clear(OperationContext* opCtx, querySettings->removeAllowedIndices(cq->encodeKey()); // Remove entry from plan cache - planCache->remove(plan_cache_key_factory::make<PlanCacheKey>(*cq, collection)); + planCache->remove(plan_cache_key_factory::make(*cq, collection)); LOGV2(20479, "Removed index filter on {query}", @@ -320,7 +320,7 @@ Status ClearFilters::clear(OperationContext* opCtx, std::unique_ptr<CanonicalQuery> cq = std::move(statusWithCQ.getValue()); // Remove plan cache entry. - planCache->remove(plan_cache_key_factory::make<PlanCacheKey>(*cq, collection)); + planCache->remove(plan_cache_key_factory::make(*cq, collection)); } LOGV2(20480, @@ -401,7 +401,7 @@ Status SetFilter::set(OperationContext* opCtx, querySettings->setAllowedIndices(*cq, indexes, indexNames); // Remove entry from plan cache. - planCache->remove(plan_cache_key_factory::make<PlanCacheKey>(*cq, collection)); + planCache->remove(plan_cache_key_factory::make(*cq, collection)); LOGV2(20481, "Index filter set on {query} {indexes}", |