diff options
Diffstat (limited to 'src/mongo/db/query/query_knobs.cpp')
-rw-r--r-- | src/mongo/db/query/query_knobs.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/query/query_knobs.cpp b/src/mongo/db/query/query_knobs.cpp index 2cd2c61f022..207d1f89114 100644 --- a/src/mongo/db/query/query_knobs.cpp +++ b/src/mongo/db/query/query_knobs.cpp @@ -137,6 +137,14 @@ MONGO_EXPORT_SERVER_PARAMETER(internalQueryMaxAddToSetBytes, int, 100 * 1024 * 1 return Status::OK(); }); +MONGO_EXPORT_SERVER_PARAMETER(internalQueryMaxRangeBytes, int, 100 * 1024 * 1024) + ->withValidator([](const int& newVal) { + if (newVal <= 0) { + return Status(ErrorCodes::BadValue, "internalQueryMaxRangeBytes must be positive"); + } + return Status::OK(); + }); + MONGO_EXPORT_SERVER_PARAMETER(internalQueryExplainSizeThresholdBytes, int, 10 * 1024 * 1024) ->withValidator([](const int& newVal) { if (newVal <= 0) { |