diff options
author | mathisbessamdb <mathis.bessa@mongodb.com> | 2023-05-01 20:06:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-10 20:07:40 +0000 |
commit | 1da4e2258b20629c277ce78b9c1776b28717d2ec (patch) | |
tree | 2c05c63d558c3069af63ffc0f6f2af232dd9beea /src/mongo/db/auth | |
parent | ad8a74f5782fb8b3f24f74305c44da725732616a (diff) | |
download | mongo-1da4e2258b20629c277ce78b9c1776b28717d2ec.tar.gz |
SERVER-74491 Make DatabaseName::toString private
Diffstat (limited to 'src/mongo/db/auth')
-rw-r--r-- | src/mongo/db/auth/sasl_commands.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/auth/sasl_commands.cpp b/src/mongo/db/auth/sasl_commands.cpp index ff160e753e6..a32e4ccee36 100644 --- a/src/mongo/db/auth/sasl_commands.cpp +++ b/src/mongo/db/auth/sasl_commands.cpp @@ -207,9 +207,10 @@ void warnIfCompressed(OperationContext* opCtx) { SaslReply doSaslStart(OperationContext* opCtx, AuthenticationSession* session, const SaslStartCommand& request) { - auto mechanism = uassertStatusOK( - SASLServerMechanismRegistry::get(opCtx->getServiceContext()) - .getServerMechanism(request.getMechanism(), request.getDbName().toString())); + auto mechanism = + uassertStatusOK(SASLServerMechanismRegistry::get(opCtx->getServiceContext()) + .getServerMechanism(request.getMechanism(), + DatabaseNameUtil::serialize(request.getDbName()))); uassert(ErrorCodes::BadValue, "Plaintext mechanisms may not be used with speculativeSaslStart", |