summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authz_manager_external_state_s.cpp
diff options
context:
space:
mode:
authorDaniel Alabi <alabidan@gmail.com>2015-05-21 08:49:11 -0400
committerDaniel Alabi <alabidan@gmail.com>2015-05-21 13:43:43 -0400
commitc19715f0411f834e761128e64ec24488997383e6 (patch)
treef7b888a157f49b63fd13a0e1d4b11fe9a6d86132 /src/mongo/db/auth/authz_manager_external_state_s.cpp
parent70c7cba06315b14a92a4d46bf2244b990cda902b (diff)
downloadmongo-c19715f0411f834e761128e64ec24488997383e6.tar.gz
SERVER-18478 Clean up AuthzManagerExternalState
Removed insert/remove/update from the AuthzManagerExternalState* interfaces
Diffstat (limited to 'src/mongo/db/auth/authz_manager_external_state_s.cpp')
-rw-r--r--src/mongo/db/auth/authz_manager_external_state_s.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/mongo/db/auth/authz_manager_external_state_s.cpp b/src/mongo/db/auth/authz_manager_external_state_s.cpp
index 19e32f62003..d05fac906f2 100644
--- a/src/mongo/db/auth/authz_manager_external_state_s.cpp
+++ b/src/mongo/db/auth/authz_manager_external_state_s.cpp
@@ -44,7 +44,6 @@
#include "mongo/db/auth/authz_session_external_state_s.h"
#include "mongo/db/auth/user_name.h"
#include "mongo/db/jsobj.h"
-#include "mongo/s/catalog/catalog_manager.h"
#include "mongo/s/client/shard_registry.h"
#include "mongo/s/config.h"
#include "mongo/s/grid.h"
@@ -283,53 +282,4 @@ namespace {
}
}
- Status AuthzManagerExternalStateMongos::insert(
- OperationContext* txn,
- const NamespaceString& collectionName,
- const BSONObj& document,
- const BSONObj& writeConcern) {
-
- return grid.catalogManager()->insert(collectionName, document, NULL);
- }
-
- Status AuthzManagerExternalStateMongos::update(OperationContext* txn,
- const NamespaceString& collectionName,
- const BSONObj& query,
- const BSONObj& updatePattern,
- bool upsert,
- bool multi,
- const BSONObj& writeConcern,
- int* nMatched) {
-
- BatchedCommandResponse response;
- Status res = grid.catalogManager()->update(collectionName,
- query,
- updatePattern,
- upsert,
- multi,
- &response);
- if (res.isOK()) {
- *nMatched = response.getN();
- }
-
- return res;
- }
-
- Status AuthzManagerExternalStateMongos::remove(
- OperationContext* txn,
- const NamespaceString& collectionName,
- const BSONObj& query,
- const BSONObj& writeConcern,
- int* numRemoved) {
-
- BatchedCommandResponse response;
-
- Status res = grid.catalogManager()->remove(collectionName, query, 0, &response);
- if (res.isOK()) {
- *numRemoved = response.getN();
- }
-
- return res;
- }
-
} // namespace mongo