summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_stage_delete.cpp
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2016-04-19 08:28:56 -0400
committerEric Milkie <milkie@10gen.com>2016-04-19 08:28:56 -0400
commit35ea899074d1bf93e78177cac1155b4471cbaa7d (patch)
treefce52bf3d3b3fcd270d33ab228babf6ea6602e22 /src/mongo/dbtests/query_stage_delete.cpp
parent0ab34aa7b9c3c48ea6cf17888620fca455284d35 (diff)
downloadmongo-35ea899074d1bf93e78177cac1155b4471cbaa7d.tar.gz
Revert "SERVER-23779 Replace direct instantiation of OperationContextImpl with cc().makeOperationContext()."
This reverts commit 0ab34aa7b9c3c48ea6cf17888620fca455284d35.
Diffstat (limited to 'src/mongo/dbtests/query_stage_delete.cpp')
-rw-r--r--src/mongo/dbtests/query_stage_delete.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/dbtests/query_stage_delete.cpp b/src/mongo/dbtests/query_stage_delete.cpp
index 4c3e2b873aa..c35536708ca 100644
--- a/src/mongo/dbtests/query_stage_delete.cpp
+++ b/src/mongo/dbtests/query_stage_delete.cpp
@@ -30,11 +30,9 @@
* This file tests db/exec/delete.cpp.
*/
-#include "mongo/platform/basic.h"
#include "mongo/db/catalog/collection.h"
#include "mongo/db/catalog/database.h"
-#include "mongo/db/client.h"
#include "mongo/db/concurrency/write_conflict_exception.h"
#include "mongo/db/db_raii.h"
#include "mongo/db/dbdirectclient.h"
@@ -42,6 +40,7 @@
#include "mongo/db/exec/delete.h"
#include "mongo/db/exec/queued_data_stage.h"
#include "mongo/db/matcher/extensions_callback_disallow_extensions.h"
+#include "mongo/db/operation_context_impl.h"
#include "mongo/db/query/canonical_query.h"
#include "mongo/db/service_context.h"
#include "mongo/dbtests/dbtests.h"
@@ -115,8 +114,7 @@ public:
}
protected:
- const ServiceContext::UniqueOperationContext _txnPtr = cc().makeOperationContext();
- OperationContext& _txn = *_txnPtr;
+ OperationContextImpl _txn;
private:
DBDirectClient _client;