diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2021-01-20 11:13:41 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-09 20:15:31 +0000 |
commit | 0cac5b8ebcbf1bf5e0abfa3235c6ad15d85f3934 (patch) | |
tree | fe9577f9c2df05d439810334afa9963ceec6a620 /src/mongo/db/commands/authentication_commands.cpp | |
parent | 252d3a718ca84b627b4934326646bc359876708b (diff) | |
download | mongo-0cac5b8ebcbf1bf5e0abfa3235c6ad15d85f3934.tar.gz |
SERVER-50538 Control intracluster traffic in speculative auth tests
Diffstat (limited to 'src/mongo/db/commands/authentication_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/authentication_commands.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/commands/authentication_commands.cpp b/src/mongo/db/commands/authentication_commands.cpp index a54060a68e0..485b292c7a2 100644 --- a/src/mongo/db/commands/authentication_commands.cpp +++ b/src/mongo/db/commands/authentication_commands.cpp @@ -244,9 +244,8 @@ void _authenticateX509(OperationContext* opCtx, UserName& user, StringData dbnam "Client isn't a mongod or mongos, but is connecting with a " "certificate with cluster membership"); } - - authCounter.getMechanismCounter("MONGODB-X509").incClusterAuthenticateSuccessful(); } + authCounter.getMechanismCounter("MONGODB-X509").incClusterAuthenticateSuccessful(); authorizationSession->grantInternalAuthorization(client); } else { |