summaryrefslogtreecommitdiff
path: root/src/mongo/db/server_options_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/server_options_helpers.h')
-rw-r--r--src/mongo/db/server_options_helpers.h55
1 files changed, 27 insertions, 28 deletions
diff --git a/src/mongo/db/server_options_helpers.h b/src/mongo/db/server_options_helpers.h
index b1b36b6a5b1..829388bfbb8 100644
--- a/src/mongo/db/server_options_helpers.h
+++ b/src/mongo/db/server_options_helpers.h
@@ -34,41 +34,40 @@
namespace mongo {
- namespace optionenvironment {
- class OptionSection;
- class Environment;
- } // namespace optionenvironment
+namespace optionenvironment {
+class OptionSection;
+class Environment;
+} // namespace optionenvironment
- namespace moe = mongo::optionenvironment;
+namespace moe = mongo::optionenvironment;
- Status addGeneralServerOptions(moe::OptionSection* options);
+Status addGeneralServerOptions(moe::OptionSection* options);
- Status addWindowsServerOptions(moe::OptionSection* options);
+Status addWindowsServerOptions(moe::OptionSection* options);
- Status addSSLServerOptions(moe::OptionSection* options);
+Status addSSLServerOptions(moe::OptionSection* options);
- /**
- * Handle custom validation of server options that can not currently be done by using
- * Constraints in the Environment. See the "validate" function in the Environment class for
- * more details.
- */
- Status validateServerOptions(const moe::Environment& params);
+/**
+ * Handle custom validation of server options that can not currently be done by using
+ * Constraints in the Environment. See the "validate" function in the Environment class for
+ * more details.
+ */
+Status validateServerOptions(const moe::Environment& params);
- /**
- * Canonicalize server options for the given environment.
- *
- * For example, the options "objcheck", "noobjcheck", and "net.wireObjectCheck" should all be
- * merged into "net.wireObjectCheck".
- */
- Status canonicalizeServerOptions(moe::Environment* params);
+/**
+ * Canonicalize server options for the given environment.
+ *
+ * For example, the options "objcheck", "noobjcheck", and "net.wireObjectCheck" should all be
+ * merged into "net.wireObjectCheck".
+ */
+Status canonicalizeServerOptions(moe::Environment* params);
- Status storeServerOptions(const moe::Environment& params,
- const std::vector<std::string>& args);
+Status storeServerOptions(const moe::Environment& params, const std::vector<std::string>& args);
- void printCommandLineOpts();
+void printCommandLineOpts();
- // This function should eventually go away, but needs to be here now because we have a lot of
- // code that is shared between mongod and mongos that must know at runtime which binary it is in
- bool isMongos();
+// This function should eventually go away, but needs to be here now because we have a lot of
+// code that is shared between mongod and mongos that must know at runtime which binary it is in
+bool isMongos();
-} // namespace mongo
+} // namespace mongo