diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-06-13 15:35:51 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-06-27 22:54:43 -0400 |
commit | 52edab726185cbba1401cb46de221fb3d1cb0408 (patch) | |
tree | 165f9e8fded43db1dac6ab9a1c46cc2367362e5b /src/mongo/dbtests/query_stage_fetch.cpp | |
parent | ecfc44d7bce08660804fa4475b45f9a09d203f09 (diff) | |
download | mongo-52edab726185cbba1401cb46de221fb3d1cb0408.tar.gz |
SERVER-13961 Add OperationContext argument to Client::Context
Time tracking and database access in Client::Context require access to the
OperationContext. Adding it as argument.
This is in preparation for removing LockState from Client.
Diffstat (limited to 'src/mongo/dbtests/query_stage_fetch.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_fetch.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/dbtests/query_stage_fetch.cpp b/src/mongo/dbtests/query_stage_fetch.cpp index 3414475baf9..4bea8b9e004 100644 --- a/src/mongo/dbtests/query_stage_fetch.cpp +++ b/src/mongo/dbtests/query_stage_fetch.cpp @@ -48,7 +48,9 @@ namespace QueryStageFetch { class QueryStageFetchBase { public: - QueryStageFetchBase() { } + QueryStageFetchBase() : _client(&_txn) { + + } virtual ~QueryStageFetchBase() { _client.dropCollection(ns()); @@ -75,6 +77,7 @@ namespace QueryStageFetch { static const char* ns() { return "unittests.QueryStageFetch"; } private: + OperationContextImpl _txn; DBDirectClient _client; }; |