diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-04-26 07:05:39 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-12-08 22:45:08 +0000 |
commit | 7c51aca7fd085ead0ae3e19d967ff1abf111d13a (patch) | |
tree | becfe057d3dbbb88b02ad628fb1a95a30adf686c /src/mongo/client/sasl_sspi.cpp | |
parent | 987484b4aa34deea1db7d70228989b83448a24e8 (diff) | |
download | mongo-7c51aca7fd085ead0ae3e19d967ff1abf111d13a.tar.gz |
SERVER-40811 make initializers throwy
- Consolidate init-related headers (just init.h and initializer.h)
- Factor out a separate DependencyGraph component
- Remove MONGO_DEFAULT_PREREQUISITES, MONGO_NO_PREREQUISITES, MONGO_NO_DEPENDENTS.
- Document the role of the "default" initializer.
Diffstat (limited to 'src/mongo/client/sasl_sspi.cpp')
-rw-r--r-- | src/mongo/client/sasl_sspi.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/mongo/client/sasl_sspi.cpp b/src/mongo/client/sasl_sspi.cpp index 42963e68b0f..f904eaa24a7 100644 --- a/src/mongo/client/sasl_sspi.cpp +++ b/src/mongo/client/sasl_sspi.cpp @@ -476,12 +476,10 @@ MONGO_INITIALIZER_WITH_PREREQUISITES(SaslSspiClientPlugin, (InitializerContext*) { int ret = sasl_client_add_plugin(sspiPluginName, sspiClientPluginInit); if (SASL_OK != ret) { - return Status(ErrorCodes::UnknownError, - str::stream() << "could not add SASL Client SSPI plugin " << sspiPluginName - << ": " << sasl_errstring(ret, nullptr, nullptr)); + uasserted(ErrorCodes::UnknownError, + str::stream() << "could not add SASL Client SSPI plugin " << sspiPluginName + << ": " << sasl_errstring(ret, nullptr, nullptr)); } - - return Status::OK(); } MONGO_INITIALIZER_WITH_PREREQUISITES(SaslPlainClientPlugin, @@ -489,12 +487,10 @@ MONGO_INITIALIZER_WITH_PREREQUISITES(SaslPlainClientPlugin, (InitializerContext*) { int ret = sasl_client_add_plugin("PLAIN", plain_client_plug_init); if (SASL_OK != ret) { - return Status(ErrorCodes::UnknownError, - str::stream() << "Could not add SASL Client PLAIN plugin " << sspiPluginName - << ": " << sasl_errstring(ret, nullptr, nullptr)); + uasserted(ErrorCodes::UnknownError, + str::stream() << "Could not add SASL Client PLAIN plugin " << sspiPluginName + << ": " << sasl_errstring(ret, nullptr, nullptr)); } - - return Status::OK(); } } // namespace |