summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth
diff options
context:
space:
mode:
authormathisbessamdb <mathis.bessa@mongodb.com>2023-05-01 20:06:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-10 20:07:40 +0000
commit1da4e2258b20629c277ce78b9c1776b28717d2ec (patch)
tree2c05c63d558c3069af63ffc0f6f2af232dd9beea /src/mongo/db/auth
parentad8a74f5782fb8b3f24f74305c44da725732616a (diff)
downloadmongo-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.cpp7
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",