summaryrefslogtreecommitdiff
path: root/src/mongo/db/mongod_options_init.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-04-07 16:11:34 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-04-16 16:00:29 -0400
commitaa303eb3b5898842a0f5730472413d2b2fdc0930 (patch)
tree6d4c6991991be27c80d40bc4df67d5b31bf34166 /src/mongo/db/mongod_options_init.cpp
parenteb8025a6ff2c3652a1f89ae513f7a4a98cd4e2ab (diff)
downloadmongo-aa303eb3b5898842a0f5730472413d2b2fdc0930.tar.gz
SERVER-17817 Make AuthorizationManager a decoration on ServiceContext.
While we're in there, make it a fatal error to call AuthorizationManager::set or AuthorizationSession::set twice on the same object.
Diffstat (limited to 'src/mongo/db/mongod_options_init.cpp')
-rw-r--r--src/mongo/db/mongod_options_init.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/mongod_options_init.cpp b/src/mongo/db/mongod_options_init.cpp
index e8cfa3ef1a0..a8c8ebb74cd 100644
--- a/src/mongo/db/mongod_options_init.cpp
+++ b/src/mongo/db/mongod_options_init.cpp
@@ -65,9 +65,7 @@ namespace mongo {
}
MONGO_INITIALIZER_GENERAL(MongodOptions_Store,
- ("BeginStartupOptionStorage",
- "CreateAuthorizationManager"), // Requried to call
- // getGlobalAuthorizationManager().
+ ("BeginStartupOptionStorage"),
("EndStartupOptionStorage"))
(InitializerContext* context) {
Status ret = storeMongodOptions(moe::startupOptionsParsed, context->args());