summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/classic_stage_builder_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/classic_stage_builder_test.cpp')
-rw-r--r--src/mongo/db/query/classic_stage_builder_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/query/classic_stage_builder_test.cpp b/src/mongo/db/query/classic_stage_builder_test.cpp
index 0fd2f44faa0..b7761ef474f 100644
--- a/src/mongo/db/query/classic_stage_builder_test.cpp
+++ b/src/mongo/db/query/classic_stage_builder_test.cpp
@@ -68,9 +68,10 @@ public:
* Builds a PlanStage using the given WorkingSet and QuerySolution.
*/
std::unique_ptr<PlanStage> buildPlanStage(std::unique_ptr<QuerySolution> querySolution) {
- auto qr = std::make_unique<QueryRequest>(kNss);
+ auto findCommand = std::make_unique<FindCommand>(kNss);
auto expCtx = make_intrusive<ExpressionContext>(opCtx(), nullptr, kNss);
- auto statusWithCQ = CanonicalQuery::canonicalize(opCtx(), std::move(qr), expCtx);
+ auto statusWithCQ =
+ CanonicalQuery::canonicalize(opCtx(), std::move(findCommand), false, expCtx);
ASSERT_OK(statusWithCQ.getStatus());
stage_builder::ClassicStageBuilder builder{