diff options
Diffstat (limited to 'src/mongo/db/auth/user_cache_invalidator_job.h')
-rw-r--r-- | src/mongo/db/auth/user_cache_invalidator_job.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/mongo/db/auth/user_cache_invalidator_job.h b/src/mongo/db/auth/user_cache_invalidator_job.h index 8742a28c79c..3eb173b0a56 100644 --- a/src/mongo/db/auth/user_cache_invalidator_job.h +++ b/src/mongo/db/auth/user_cache_invalidator_job.h @@ -32,25 +32,25 @@ namespace mongo { - class AuthorizationManager; - - /** - * Background job that runs only in mongos and periodically checks in with the config servers - * to determine whether any authorization information has changed, and if so causes the - * AuthorizationManager to throw out its in-memory cache of User objects (which contains the - * users' credentials, roles, privileges, etc). - */ - class UserCacheInvalidator : public BackgroundJob { - public: - explicit UserCacheInvalidator(AuthorizationManager* authzManager); - - protected: - virtual std::string name() const; - virtual void run(); - - private: - AuthorizationManager* _authzManager; - OID _previousCacheGeneration; - }; - -} // namespace mongo +class AuthorizationManager; + +/** + * Background job that runs only in mongos and periodically checks in with the config servers + * to determine whether any authorization information has changed, and if so causes the + * AuthorizationManager to throw out its in-memory cache of User objects (which contains the + * users' credentials, roles, privileges, etc). + */ +class UserCacheInvalidator : public BackgroundJob { +public: + explicit UserCacheInvalidator(AuthorizationManager* authzManager); + +protected: + virtual std::string name() const; + virtual void run(); + +private: + AuthorizationManager* _authzManager; + OID _previousCacheGeneration; +}; + +} // namespace mongo |