From fa72bb1f863e2539c5d4a3c06c147b04e5066bab Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Thu, 8 Aug 2013 15:11:39 -0400 Subject: SERVER-9518 Make sure internal user stays in the user cache --- src/mongo/db/auth/authorization_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mongo/db/auth/authorization_manager.cpp b/src/mongo/db/auth/authorization_manager.cpp index 897c8f7fcf3..bceb7f1cc7e 100644 --- a/src/mongo/db/auth/authorization_manager.cpp +++ b/src/mongo/db/auth/authorization_manager.cpp @@ -856,6 +856,8 @@ namespace { delete it->second; } _userCache.clear(); + // Make sure the internal user stays in the cache. + _userCache.insert(make_pair(internalSecurity.user->getName(), internalSecurity.user)); } Status AuthorizationManager::initializeAllV1UserData() { -- cgit v1.2.1