summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorDavid Storch <david.storch@mongodb.com>2020-11-04 17:07:16 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-06 14:24:00 +0000
commit5da1a52746a85a54b2809e8901da707a35d78e22 (patch)
tree0d9fff8f8cf02d0a688c6e8be2ff37a82042599e /src/mongo
parenta9386b0525171be6313d734a4b4241751a599341 (diff)
downloadmongo-5da1a52746a85a54b2809e8901da707a35d78e22.tar.gz
SERVER-51524 Rename internalQueryCacheSize to internalQueryCacheMaxEntriesPerCollection
Retains "internalQueryCacheSize" as a deprecated alias. The new name better reflects the function of the parameter, as it controls the number of cache entries allowed for each collection's cache rather than the overall size of the cache in bytes.
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/query/plan_cache.cpp2
-rw-r--r--src/mongo/db/query/query_knobs.idl5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/query/plan_cache.cpp b/src/mongo/db/query/plan_cache.cpp
index a3c3543b2f2..67e9020c369 100644
--- a/src/mongo/db/query/plan_cache.cpp
+++ b/src/mongo/db/query/plan_cache.cpp
@@ -431,7 +431,7 @@ std::string SolutionCacheData::toString() const {
// PlanCache
//
-PlanCache::PlanCache() : PlanCache(internalQueryCacheSize.load()) {}
+PlanCache::PlanCache() : PlanCache(internalQueryCacheMaxEntriesPerCollection.load()) {}
PlanCache::PlanCache(size_t size) : _cache(size) {}
diff --git a/src/mongo/db/query/query_knobs.idl b/src/mongo/db/query/query_knobs.idl
index b23967929b0..52651caa6f0 100644
--- a/src/mongo/db/query/query_knobs.idl
+++ b/src/mongo/db/query/query_knobs.idl
@@ -90,11 +90,12 @@ server_parameters:
# Plan cache
#
- internalQueryCacheSize:
+ internalQueryCacheMaxEntriesPerCollection:
description: "The maximum number of entries allowed in a given collection's plan cache."
set_at: [ startup, runtime ]
- cpp_varname: "internalQueryCacheSize"
+ cpp_varname: "internalQueryCacheMaxEntriesPerCollection"
cpp_vartype: AtomicWord<int>
+ deprecated_name: "internalQueryCacheSize"
default: 5000
validator:
gte: 0