summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authorization_manager.h
diff options
context:
space:
mode:
authorDaniel Alabi <alabidan@gmail.com>2015-05-21 08:48:30 -0400
committerDaniel Alabi <alabidan@gmail.com>2015-05-21 11:31:32 -0400
commit87509640447fd785e0fbeb33c7fa87cf824f4c5f (patch)
tree16f25f69359a477877eb644fb99fb4cc4cb26f9f /src/mongo/db/auth/authorization_manager.h
parent5a9282d6d4904ff86c336df655d78d3063906082 (diff)
downloadmongo-87509640447fd785e0fbeb33c7fa87cf824f4c5f.tar.gz
SERVER-18478 Remove unused update*Credentials and upgradeSchema* from the AuthorizationManager interface
Diffstat (limited to 'src/mongo/db/auth/authorization_manager.h')
-rw-r--r--src/mongo/db/auth/authorization_manager.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/mongo/db/auth/authorization_manager.h b/src/mongo/db/auth/authorization_manager.h
index 2825269be58..7a42df327db 100644
--- a/src/mongo/db/auth/authorization_manager.h
+++ b/src/mongo/db/auth/authorization_manager.h
@@ -395,37 +395,6 @@ namespace mongo {
Status _initializeUserFromPrivilegeDocument(User* user, const BSONObj& privDoc);
/**
- * Performs one step in the process of upgrading the stored authorization data to the
- * newest schema.
- *
- * On success, returns Status::OK(), and *isDone will indicate whether there are more
- * steps to perform.
- *
- * If the authorization data is already fully upgraded, returns Status::OK and sets *isDone
- * to true, so this is safe to call on a fully upgraded system.
- *
- * On failure, returns a status other than Status::OK(). In this case, is is typically safe
- * to try again.
- */
- Status upgradeSchemaStep(
- OperationContext* txn, const BSONObj& writeConcern, bool* isDone);
-
- /**
- * Performs up to maxSteps steps in the process of upgrading the stored authorization data
- * to the newest schema. Behaves as if by repeatedly calling upgradeSchemaStep up to
- * maxSteps times until either it completes the upgrade or returns a non-OK status.
- *
- * Invalidates the user cache before the first step and after each attempted step.
- *
- * Returns Status::OK() to indicate that the upgrade process has completed successfully.
- * Returns ErrorCodes::OperationIncomplete to indicate that progress was made, but that more
- * steps must be taken to complete the process. Other returns indicate a failure to make
- * progress performing the upgrade, and the specific code and message in the returned status
- * may provide additional information.
- */
- Status upgradeSchema(OperationContext* txn, int maxSteps, const BSONObj& writeConcern);
-
- /**
* Hook called by replication code to let the AuthorizationManager observe changes
* to relevant collections.
*/