summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_stage_delete.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-03-26 16:40:28 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-03-27 10:25:09 -0400
commit92593d1af174244ba5560be29908b4f729fec78c (patch)
treed98ba6959b2f91da14aad46794248d2323c7ce08 /src/mongo/dbtests/query_stage_delete.cpp
parent18a3b8528833a478d5a207bfe5fcb8e35673ee8f (diff)
downloadmongo-92593d1af174244ba5560be29908b4f729fec78c.tar.gz
SERVER-17758 Move AutoGet* and Client::*Context to their own file.
The new file is mongo/db/db_raii.h. Also, Client::Context is now OldClientContext and Client::WriteContext is OldClientWriteContext.
Diffstat (limited to 'src/mongo/dbtests/query_stage_delete.cpp')
-rw-r--r--src/mongo/dbtests/query_stage_delete.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/dbtests/query_stage_delete.cpp b/src/mongo/dbtests/query_stage_delete.cpp
index 5a2385887ce..970fe9fd527 100644
--- a/src/mongo/dbtests/query_stage_delete.cpp
+++ b/src/mongo/dbtests/query_stage_delete.cpp
@@ -34,6 +34,7 @@
#include "mongo/db/catalog/collection.h"
#include "mongo/db/catalog/database.h"
+#include "mongo/db/db_raii.h"
#include "mongo/db/dbdirectclient.h"
#include "mongo/db/exec/collection_scan.h"
#include "mongo/db/exec/delete.h"
@@ -52,7 +53,7 @@ namespace QueryStageDelete {
class QueryStageDeleteBase {
public:
QueryStageDeleteBase() : _client(&_txn) {
- Client::WriteContext ctx(&_txn, ns());
+ OldClientWriteContext ctx(&_txn, ns());
for (size_t i = 0; i < numObj(); ++i) {
BSONObjBuilder bob;
@@ -62,7 +63,7 @@ namespace QueryStageDelete {
}
virtual ~QueryStageDeleteBase() {
- Client::WriteContext ctx(&_txn, ns());
+ OldClientWriteContext ctx(&_txn, ns());
_client.dropCollection(ns());
}
@@ -111,7 +112,7 @@ namespace QueryStageDelete {
class QueryStageDeleteInvalidateUpcomingObject : public QueryStageDeleteBase {
public:
void run() {
- Client::WriteContext ctx(&_txn, ns());
+ OldClientWriteContext ctx(&_txn, ns());
Collection* coll = ctx.getCollection();