diff options
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/auth/authorization_manager_impl.cpp | 8 |
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(); |