summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/sbe_stage_builder_test_fixture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/sbe_stage_builder_test_fixture.cpp')
-rw-r--r--src/mongo/db/query/sbe_stage_builder_test_fixture.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/query/sbe_stage_builder_test_fixture.cpp b/src/mongo/db/query/sbe_stage_builder_test_fixture.cpp
index d832a3e30b6..fad3a4cd63a 100644
--- a/src/mongo/db/query/sbe_stage_builder_test_fixture.cpp
+++ b/src/mongo/db/query/sbe_stage_builder_test_fixture.cpp
@@ -49,9 +49,10 @@ SbeStageBuilderTestFixture::buildPlanStage(
std::unique_ptr<QuerySolution> querySolution,
bool hasRecordId,
std::unique_ptr<ShardFiltererFactoryInterface> shardFiltererInterface) {
- auto qr = std::make_unique<QueryRequest>(_nss);
+ auto findCommand = std::make_unique<FindCommand>(_nss);
const boost::intrusive_ptr<ExpressionContext> expCtx(new ExpressionContextForTest(_nss));
- 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::SlotBasedStageBuilder builder{opCtx(),