summaryrefslogtreecommitdiff
path: root/src/mongo/db/mongod_options.h
diff options
context:
space:
mode:
authorShaun Verch <shaun.verch@mongodb.com>2014-03-27 11:24:43 -0400
committerShaun Verch <shaun.verch@mongodb.com>2014-03-27 19:36:36 -0400
commit17882d68d1ee00e75e545abe65bda1b18876ef21 (patch)
tree012ead982260d8e95207af71c68a6de060739b47 /src/mongo/db/mongod_options.h
parent04eda9bb1b5a348201f0b81d56af950c1c538a09 (diff)
downloadmongo-17882d68d1ee00e75e545abe65bda1b18876ef21.tar.gz
SERVER-13372 Canonicalize dur, nodur, journal, nojournal and storage.journaling.enabled
Diffstat (limited to 'src/mongo/db/mongod_options.h')
-rw-r--r--src/mongo/db/mongod_options.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mongo/db/mongod_options.h b/src/mongo/db/mongod_options.h
index e7c9c4626fe..61112f54f3d 100644
--- a/src/mongo/db/mongod_options.h
+++ b/src/mongo/db/mongod_options.h
@@ -69,5 +69,20 @@ namespace mongo {
bool handlePreValidationMongodOptions(const moe::Environment& params,
const std::vector<std::string>& args);
+ /**
+ * Handle custom validation of mongod 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 validateMongodOptions(const moe::Environment& params);
+
+ /**
+ * Canonicalize mongod options for the given environment.
+ *
+ * For example, the options "dur", "nodur", "journal", "nojournal", and
+ * "storage.journaling.enabled" should all be merged into "storage.journaling.enabled".
+ */
+ Status canonicalizeMongodOptions(moe::Environment* params);
+
Status storeMongodOptions(const moe::Environment& params, const std::vector<std::string>& args);
}