diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2020-04-20 14:34:56 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-20 19:10:42 +0000 |
commit | 817a7f1951189b2a8c7c06fb5fb5361241c1cd57 (patch) | |
tree | ff2ddf6e93b91e7493259934c925dbb9f03e3f6d /src/mongo/db/service_context.cpp | |
parent | 06f26fac35c7a3b82effbb9815ad9f7aedaf4dfb (diff) | |
download | mongo-817a7f1951189b2a8c7c06fb5fb5361241c1cd57.tar.gz |
SERVER-47429 Validate authenticationMechanisms server parameter
Diffstat (limited to 'src/mongo/db/service_context.cpp')
-rw-r--r-- | src/mongo/db/service_context.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mongo/db/service_context.cpp b/src/mongo/db/service_context.cpp index c124cf751f6..b9b5b18b44a 100644 --- a/src/mongo/db/service_context.cpp +++ b/src/mongo/db/service_context.cpp @@ -416,6 +416,15 @@ ServiceContext::ConstructorActionRegisterer::ConstructorActionRegisterer( std::string name, std::vector<std::string> prereqs, ConstructorAction constructor, + DestructorAction destructor) + : ConstructorActionRegisterer( + std::move(name), prereqs, {}, std::move(constructor), std::move(destructor)) {} + +ServiceContext::ConstructorActionRegisterer::ConstructorActionRegisterer( + std::string name, + std::vector<std::string> prereqs, + std::vector<std::string> dependents, + ConstructorAction constructor, DestructorAction destructor) { if (!destructor) destructor = [](ServiceContext*) {}; @@ -431,7 +440,8 @@ ServiceContext::ConstructorActionRegisterer::ConstructorActionRegisterer( registeredConstructorActions().erase(_iter); return Status::OK(); }, - std::move(prereqs)); + std::move(prereqs), + std::move(dependents)); } ServiceContext::UniqueServiceContext ServiceContext::make() { |