summaryrefslogtreecommitdiff
path: root/src/mongo/s/server.cpp
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2018-05-11 12:59:17 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2018-05-11 12:59:17 -0400
commitecf8ad987548705e773d23d5ddc3973cbc1ea7e5 (patch)
tree62164575b6303aebecbe41670c74b713cfa314c7 /src/mongo/s/server.cpp
parent56cbcf28c6bd4d9f9e739fb834d83b61c99516f1 (diff)
downloadmongo-ecf8ad987548705e773d23d5ddc3973cbc1ea7e5.tar.gz
SERVER-33008 Slice Authorization framework
The Authorization framework was intertwined with many subsystems and needed to be properly abstracted in order to facilitate cutting down on certain unnecessary dependencies in some libraries. This also facilitates creating a reduced authorization framework for use in embedded builds.
Diffstat (limited to 'src/mongo/s/server.cpp')
-rw-r--r--src/mongo/s/server.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp
index 3c68ef51462..7d8f848921b 100644
--- a/src/mongo/s/server.cpp
+++ b/src/mongo/s/server.cpp
@@ -528,6 +528,7 @@ ExitCode main(ServiceContext* serviceContext) {
return runMongosServer(serviceContext);
}
+namespace {
MONGO_INITIALIZER_GENERAL(ForkServer, ("EndStartupOptionHandling"), ("default"))
(InitializerContext* context) {
forkServerOrDie();
@@ -546,11 +547,6 @@ MONGO_INITIALIZER_WITH_PREREQUISITES(SetFeatureCompatibilityVersion40, ("EndStar
return Status::OK();
}
-MONGO_INITIALIZER(CreateAuthorizationExternalStateFactory)(InitializerContext* context) {
- AuthzManagerExternalState::create = &createAuthzManagerExternalStateMongos;
- return Status::OK();
-}
-
ServiceContextRegistrar serviceContextCreator([]() {
auto service = std::make_unique<ServiceContextNoop>();
service->setTickSource(std::make_unique<SystemTickSource>());
@@ -559,7 +555,6 @@ ServiceContextRegistrar serviceContextCreator([]() {
return service;
});
-
#ifdef MONGO_CONFIG_SSL
MONGO_INITIALIZER_GENERAL(setSSLManagerType, MONGO_NO_PREREQUISITES, ("SSLManager"))
(InitializerContext* context) {
@@ -612,6 +607,7 @@ ExitCode mongoSMain(int argc, char* argv[], char** envp) {
}
}
+} // namespace
} // namespace mongo
#if defined(_WIN32)