diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2018-08-23 17:39:45 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2018-10-01 15:43:49 -0400 |
commit | d3c4ed928630e646bfc07af0ecc2201432ab22d7 (patch) | |
tree | 50377673d30e3e56a30b5fb4a7849196fd3bb9b6 /src/mongo/db/auth/authorization_manager.h | |
parent | b757d87fc622d44b16013e2722832a655d7ca052 (diff) | |
download | mongo-d3c4ed928630e646bfc07af0ecc2201432ab22d7.tar.gz |
SERVER-31552 Allow users to be pinned in memory
Diffstat (limited to 'src/mongo/db/auth/authorization_manager.h')
-rw-r--r-- | src/mongo/db/auth/authorization_manager.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/auth/authorization_manager.h b/src/mongo/db/auth/authorization_manager.h index 2c19797aad3..ad2c4b629c1 100644 --- a/src/mongo/db/auth/authorization_manager.h +++ b/src/mongo/db/auth/authorization_manager.h @@ -264,12 +264,12 @@ public: /** * Marks the given user as invalid and removes it from the user cache. */ - virtual void invalidateUserByName(const UserName& user) = 0; + virtual void invalidateUserByName(OperationContext* opCtx, const UserName& user) = 0; /** * Invalidates all users who's source is "dbname" and removes them from the user cache. */ - virtual void invalidateUsersFromDB(StringData dbname) = 0; + virtual void invalidateUsersFromDB(OperationContext* opCtx, StringData dbname) = 0; /** * Initializes the authorization manager. Depending on what version the authorization @@ -281,7 +281,7 @@ public: /** * Invalidates all of the contents of the user cache. */ - virtual void invalidateUserCache() = 0; + virtual void invalidateUserCache(OperationContext* opCtx) = 0; /** * Parses privDoc and fully initializes the user object (credentials, roles, and privileges) @@ -311,6 +311,8 @@ public: }; virtual std::vector<CachedUserInfo> getUserCacheInfo() const = 0; + + virtual void setInUserManagementCommand(OperationContext* opCtx, bool val) = 0; }; } // namespace mongo |