summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authz_manager_external_state.h
diff options
context:
space:
mode:
authorDaniel Alabi <alabidan@gmail.com>2015-05-22 13:01:37 -0400
committerDaniel Alabi <alabidan@gmail.com>2015-05-22 16:18:31 -0400
commit222ab1639e6782100a006aec49953a454df766d1 (patch)
tree7aad845e32a1e414e9bfb694c7cc072695e39d43 /src/mongo/db/auth/authz_manager_external_state.h
parente94ae781af75f1652958f9d7e907d9631a87b0e6 (diff)
downloadmongo-222ab1639e6782100a006aec49953a454df766d1.tar.gz
SERVER-18328 SERVER-18478 AuthzManagerExternalState for mongos should go through the catalog manager
Diffstat (limited to 'src/mongo/db/auth/authz_manager_external_state.h')
-rw-r--r--src/mongo/db/auth/authz_manager_external_state.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/mongo/db/auth/authz_manager_external_state.h b/src/mongo/db/auth/authz_manager_external_state.h
index 4c08e181a0a..ddcbb8c1d4c 100644
--- a/src/mongo/db/auth/authz_manager_external_state.h
+++ b/src/mongo/db/auth/authz_manager_external_state.h
@@ -129,29 +129,7 @@ namespace mongo {
/**
* Returns true if there exists at least one privilege document in the system.
*/
- bool hasAnyPrivilegeDocuments(OperationContext* txn);
-
- /**
- * Finds a document matching "query" in "collectionName", and store a shared-ownership
- * copy into "result".
- *
- * Returns Status::OK() on success. If no match is found, returns
- * ErrorCodes::NoMatchingDocument. Other errors returned as appropriate.
- */
- virtual Status findOne(OperationContext* txn,
- const NamespaceString& collectionName,
- const BSONObj& query,
- BSONObj* result) = 0;
-
- /**
- * Finds all documents matching "query" in "collectionName". For each document returned,
- * calls the function resultProcessor on it.
- */
- virtual Status query(OperationContext* txn,
- const NamespaceString& collectionName,
- const BSONObj& query,
- const BSONObj& projection,
- const stdx::function<void(const BSONObj&)>& resultProcessor) = 0;
+ virtual bool hasAnyPrivilegeDocuments(OperationContext* txn) = 0;
virtual void logOp(
OperationContext* txn,