summaryrefslogtreecommitdiff
path: root/src/mongo/db/mongod_options.cpp
diff options
context:
space:
mode:
authorShaun Verch <shaun.verch@10gen.com>2013-09-05 16:32:20 -0400
committerShaun Verch <shaun.verch@10gen.com>2013-09-05 16:32:20 -0400
commitc5b115ce983b23a375a7fff32aa3b9cd013547f3 (patch)
tree563b92b443ad7f1378b612ab349d95929f4b6d15 /src/mongo/db/mongod_options.cpp
parent49fd378c1de587c185da9e47d753e5622be1d16c (diff)
downloadmongo-c5b115ce983b23a375a7fff32aa3b9cd013547f3.tar.gz
SERVER-8510 Use new options parser in SNMP module
Diffstat (limited to 'src/mongo/db/mongod_options.cpp')
-rw-r--r--src/mongo/db/mongod_options.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/mongod_options.cpp b/src/mongo/db/mongod_options.cpp
index 5b4d877062e..edfcd18f80b 100644
--- a/src/mongo/db/mongod_options.cpp
+++ b/src/mongo/db/mongod_options.cpp
@@ -21,6 +21,7 @@
#include "mongo/base/status.h"
#include "mongo/bson/util/builder.h"
+#include "mongo/db/module.h"
#include "mongo/db/server_options.h"
#include "mongo/util/options_parser/option_description.h"
#include "mongo/util/options_parser/option_section.h"
@@ -361,6 +362,16 @@ namespace mongo {
return ret;
}
+ ret = addModuleOptions(options);
+ if (!ret.isOK()) {
+ return ret;
+ }
+
+ return Status::OK();
+ }
+
+ Status addModuleOptions(moe::OptionSection* options) {
+ Module::addAllOptions(options);
return Status::OK();
}