summaryrefslogtreecommitdiff
path: root/src/mongo/db/mongod_options.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2018-03-21 15:55:28 -0400
committerDavid Storch <david.storch@10gen.com>2018-03-22 13:02:57 -0400
commite881661be28902f18139ad8b831e0885135387ca (patch)
tree494102c74e18aa9e225123c670861f7606cda9f4 /src/mongo/db/mongod_options.cpp
parente11d931c36605ea6616b57662b723a51aea01478 (diff)
downloadmongo-e881661be28902f18139ad8b831e0885135387ca.tar.gz
SERVER-34017 Add slowms and slowOpSampleRate startup configuration for mongos.
These options can now be set on the command line when starting mongos, or in a mongos config file, in the exact same way that they can be set for a mongod.
Diffstat (limited to 'src/mongo/db/mongod_options.cpp')
-rw-r--r--src/mongo/db/mongod_options.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/mongo/db/mongod_options.cpp b/src/mongo/db/mongod_options.cpp
index a1b2aa56997..141fa00ae38 100644
--- a/src/mongo/db/mongod_options.cpp
+++ b/src/mongo/db/mongod_options.cpp
@@ -126,20 +126,6 @@ Status addMongodOptions(moe::OptionSection* options) {
// Diagnostic Options
- general_options
- .addOptionChaining("operationProfiling.slowOpThresholdMs",
- "slowms",
- moe::Int,
- "value of slow for profile and console log")
- .setDefault(moe::Value(100));
-
- general_options
- .addOptionChaining("operationProfiling.slowOpSampleRate",
- "slowOpSampleRate",
- moe::Double,
- "fraction of slow ops to include in the profile and console log")
- .setDefault(moe::Value(1.0));
-
general_options.addOptionChaining("profile", "profile", moe::Int, "0=off 1=slow, 2=all")
.setSources(moe::SourceAllLegacy);
@@ -921,14 +907,6 @@ Status storeMongodOptions(const moe::Environment& params) {
}
}
- if (params.count("operationProfiling.slowOpThresholdMs")) {
- serverGlobalParams.slowMS = params["operationProfiling.slowOpThresholdMs"].as<int>();
- }
-
- if (params.count("operationProfiling.slowOpSampleRate")) {
- serverGlobalParams.sampleRate = params["operationProfiling.slowOpSampleRate"].as<double>();
- }
-
if (params.count("storage.syncPeriodSecs")) {
storageGlobalParams.syncdelay = params["storage.syncPeriodSecs"].as<double>();
if (storageGlobalParams.syncdelay < 0 ||