summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_stage_update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/query_stage_update.cpp')
-rw-r--r--src/mongo/dbtests/query_stage_update.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/dbtests/query_stage_update.cpp b/src/mongo/dbtests/query_stage_update.cpp
index d53d3a2daf4..cc9cc693e34 100644
--- a/src/mongo/dbtests/query_stage_update.cpp
+++ b/src/mongo/dbtests/query_stage_update.cpp
@@ -190,7 +190,7 @@ public:
CurOp& curOp = *CurOp::get(_opCtx);
OpDebug* opDebug = &curOp.debug();
const CollatorInterface* collator = nullptr;
- UpdateDriver driver((UpdateDriver::Options(new ExpressionContext(&_opCtx, collator))));
+ UpdateDriver driver(new ExpressionContext(&_opCtx, collator));
Collection* collection = ctx.getCollection();
// Collection should be empty.
@@ -261,7 +261,7 @@ public:
CurOp& curOp = *CurOp::get(_opCtx);
OpDebug* opDebug = &curOp.debug();
const CollatorInterface* collator = nullptr;
- UpdateDriver driver((UpdateDriver::Options(new ExpressionContext(&_opCtx, collator))));
+ UpdateDriver driver(new ExpressionContext(&_opCtx, collator));
Database* db = ctx.db();
Collection* coll = db->getCollection(&_opCtx, nss);
@@ -380,7 +380,7 @@ public:
UpdateLifecycleImpl updateLifecycle(nss);
UpdateRequest request(nss);
const CollatorInterface* collator = nullptr;
- UpdateDriver driver((UpdateDriver::Options(new ExpressionContext(&_opCtx, collator))));
+ UpdateDriver driver(new ExpressionContext(&_opCtx, collator));
const int targetDocIndex = 0; // We'll be working with the first doc in the collection.
const BSONObj query = BSON("foo" << BSON("$gte" << targetDocIndex));
const auto ws = make_unique<WorkingSet>();
@@ -471,7 +471,7 @@ public:
UpdateLifecycleImpl updateLifecycle(nss);
UpdateRequest request(nss);
const CollatorInterface* collator = nullptr;
- UpdateDriver driver((UpdateDriver::Options(new ExpressionContext(&_opCtx, collator))));
+ UpdateDriver driver(new ExpressionContext(&_opCtx, collator));
const int targetDocIndex = 10;
const BSONObj query = BSON("foo" << BSON("$gte" << targetDocIndex));
const auto ws = make_unique<WorkingSet>();
@@ -558,7 +558,7 @@ public:
UpdateLifecycleImpl updateLifecycle(nss);
UpdateRequest request(nss);
const CollatorInterface* collator = nullptr;
- UpdateDriver driver((UpdateDriver::Options(new ExpressionContext(&_opCtx, collator))));
+ UpdateDriver driver(new ExpressionContext(&_opCtx, collator));
const BSONObj query = BSONObj();
const auto ws = make_unique<WorkingSet>();
const unique_ptr<CanonicalQuery> cq(canonicalize(query));