summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2018-11-05 13:51:36 -0500
committerJonathan Reams <jbreams@mongodb.com>2018-11-07 10:13:38 -0500
commit514873667fbb5fa62a245a936826bc71f73b87e8 (patch)
tree46f1c0a738ad5a7cfc01904136f360edbbd576bb
parent4cde8653e8b157675b8bc63035ed7409182a463b (diff)
downloadmongo-514873667fbb5fa62a245a936826bc71f73b87e8.tar.gz
SERVER-37518 Remove dead code from acquireUser
-rw-r--r--src/mongo/db/auth/authorization_manager_impl.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/auth/authorization_manager_impl.cpp b/src/mongo/db/auth/authorization_manager_impl.cpp
index d61789aec55..5973ac9b00e 100644
--- a/src/mongo/db/auth/authorization_manager_impl.cpp
+++ b/src/mongo/db/auth/authorization_manager_impl.cpp
@@ -539,14 +539,6 @@ StatusWith<UserHandle> AuthorizationManagerImpl::acquireUser(OperationContext* o
// thread is fetching into the cache
CacheGuard guard(opCtx, this);
- auto pinnedIt =
- std::find_if(_pinnedUsers.begin(), _pinnedUsers.end(), [&](const auto& userHandle) {
- return (userHandle->getName() == userName);
- });
- if (pinnedIt != _pinnedUsers.end()) {
- return *pinnedIt;
- }
-
while ((boost::none == (cachedUser = _userCache.get(userName))) &&
guard.otherUpdateInFetchPhase()) {
guard.wait();