From 0672061deb58aac931912bed68d014247c581968 Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Fri, 23 May 2014 13:17:22 -0400 Subject: SERVER-13961 Pass LockState to DBWrite and DBRead directly This is part of the changes to move LockState be part of OperationContext and not retrieved from TLS. --- src/mongo/db/commands/authentication_commands.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/commands/authentication_commands.h') diff --git a/src/mongo/db/commands/authentication_commands.h b/src/mongo/db/commands/authentication_commands.h index 4ccfb464aa7..6fa2bc6a78a 100644 --- a/src/mongo/db/commands/authentication_commands.h +++ b/src/mongo/db/commands/authentication_commands.h @@ -71,10 +71,12 @@ namespace mongo { * mechanism, and ProtocolError, indicating an error in the use of the authentication * protocol. */ - Status _authenticate(const std::string& mechanism, + Status _authenticate(OperationContext* txn, + const std::string& mechanism, const UserName& user, const BSONObj& cmdObj); - Status _authenticateCR(const UserName& user, const BSONObj& cmdObj); + Status _authenticateCR( + OperationContext* txn, const UserName& user, const BSONObj& cmdObj); Status _authenticateX509(const UserName& user, const BSONObj& cmdObj); bool _clusterIdMatch(const std::string& subjectName, const std::string& srvSubjectName); }; -- cgit v1.2.1