diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-07-22 15:54:48 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-07-23 11:54:10 -0400 |
commit | 26aff1dcc9a45e72a91a206119c12cc280148175 (patch) | |
tree | bc79b88fb0618822343c7b4e2d44303f901f4eb8 /src/mongo/db/auth/authz_manager_external_state_d.cpp | |
parent | 296c18571dd7decd33fdf62f0a23869129682264 (diff) | |
download | mongo-26aff1dcc9a45e72a91a206119c12cc280148175.tar.gz |
SERVER-13961 Thread through OperationContext to the AuthorizationManager
Diffstat (limited to 'src/mongo/db/auth/authz_manager_external_state_d.cpp')
-rw-r--r-- | src/mongo/db/auth/authz_manager_external_state_d.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/auth/authz_manager_external_state_d.cpp b/src/mongo/db/auth/authz_manager_external_state_d.cpp index 58ecb58b77e..a589e1a6998 100644 --- a/src/mongo/db/auth/authz_manager_external_state_d.cpp +++ b/src/mongo/db/auth/authz_manager_external_state_d.cpp @@ -91,12 +91,13 @@ namespace mongo { } Status AuthzManagerExternalStateMongod::query( + OperationContext* txn, const NamespaceString& collectionName, const BSONObj& query, const BSONObj& projection, const stdx::function<void(const BSONObj&)>& resultProcessor) { try { - DBDirectClient client; + DBDirectClient client(txn); client.query(resultProcessor, collectionName.ns(), query, &projection); return Status::OK(); } catch (const DBException& e) { |