diff options
Diffstat (limited to 'src/mongo/db/auth/authorization_manager_global.cpp')
-rw-r--r-- | src/mongo/db/auth/authorization_manager_global.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/auth/authorization_manager_global.cpp b/src/mongo/db/auth/authorization_manager_global.cpp index 5e6c680cd16..91ccec7ba0d 100644 --- a/src/mongo/db/auth/authorization_manager_global.cpp +++ b/src/mongo/db/auth/authorization_manager_global.cpp @@ -30,7 +30,6 @@ #include "mongo/base/disallow_copying.h" #include "mongo/base/init.h" -#include "mongo/client/auth_helpers.h" #include "mongo/db/auth/authorization_manager.h" #include "mongo/db/auth/authorization_manager_global.h" #include "mongo/db/server_parameters.h" @@ -53,7 +52,7 @@ namespace { MONGO_NO_PREREQUISITES, ("BeginStartupOptionParsing"))(InitializerContext*) { new AuthzVersionParameter(ServerParameterSet::getGlobal(), - auth::schemaVersionServerParameter); + authSchemaVersionServerParameter); return Status::OK(); } @@ -75,8 +74,11 @@ namespace { Status AuthzVersionParameter::setFromString(const std::string& newValueString) { return Status(ErrorCodes::InternalError, "set called on unsettable server parameter"); } + } // namespace + const std::string authSchemaVersionServerParameter = "authSchemaVersion"; + void setGlobalAuthorizationManager(AuthorizationManager* authManager) { fassert(16841, globalAuthManager == NULL); globalAuthManager = authManager; |