diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-05-14 17:33:25 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-05-22 19:14:01 -0400 |
commit | eb719438afc316e9bf56bf716a129def27f5e768 (patch) | |
tree | b00f395fec7c39ebc2e074cc77e4bd1bf9bbca2b /src/mongo/db/range_deleter_db_env.cpp | |
parent | 83900ac233c2a94e0f3e6a1628cf822f9bb88425 (diff) | |
download | mongo-eb719438afc316e9bf56bf716a129def27f5e768.tar.gz |
Split AuthorizationManager into 2 classes: AuthorizationManager and AuthorizationSession.
Diffstat (limited to 'src/mongo/db/range_deleter_db_env.cpp')
-rw-r--r-- | src/mongo/db/range_deleter_db_env.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/range_deleter_db_env.cpp b/src/mongo/db/range_deleter_db_env.cpp index 1349fcc38e2..b7b5bb65331 100644 --- a/src/mongo/db/range_deleter_db_env.cpp +++ b/src/mongo/db/range_deleter_db_env.cpp @@ -17,6 +17,7 @@ #include "mongo/db/range_deleter_db_env.h" #include "mongo/db/auth/authorization_manager.h" +#include "mongo/db/auth/authorization_session.h" #include "mongo/db/clientcursor.h" #include "mongo/db/cmdline.h" #include "mongo/db/dbhelpers.h" @@ -49,7 +50,7 @@ namespace mongo { } if (AuthorizationManager::isAuthEnabled()) { - cc().getAuthorizationManager()->grantInternalAuthorization("_cleanupOldData"); + cc().getAuthorizationSession()->grantInternalAuthorization("_cleanupOldData"); } ShardForceVersionOkModeBlock forceVersion; |