diff options
Diffstat (limited to 'src/mongo/db/query/query_planner_test_fixture.cpp')
-rw-r--r-- | src/mongo/db/query/query_planner_test_fixture.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/query/query_planner_test_fixture.cpp b/src/mongo/db/query/query_planner_test_fixture.cpp index 4abe9524abf..b9e25876ad6 100644 --- a/src/mongo/db/query/query_planner_test_fixture.cpp +++ b/src/mongo/db/query/query_planner_test_fixture.cpp @@ -326,7 +326,7 @@ void QueryPlannerTest::runQueryFull(const BSONObj& query, const BSONObj& maxObj) { clearState(); - auto findCommand = std::make_unique<FindCommand>(nss); + auto findCommand = std::make_unique<FindCommandRequest>(nss); findCommand->setFilter(query); findCommand->setSort(sort); findCommand->setProjection(proj); @@ -407,7 +407,7 @@ void QueryPlannerTest::runInvalidQueryFull(const BSONObj& query, const BSONObj& maxObj) { clearState(); - auto findCommand = std::make_unique<FindCommand>(nss); + auto findCommand = std::make_unique<FindCommandRequest>(nss); findCommand->setFilter(query); findCommand->setSort(sort); findCommand->setProjection(proj); @@ -450,7 +450,7 @@ void QueryPlannerTest::runQueryAsCommand(const BSONObj& cmdObj) { // If there is no '$db', append it. auto cmd = OpMsgRequest::fromDBAndBody(nss.db(), cmdObj).body; - std::unique_ptr<FindCommand> findCommand( + std::unique_ptr<FindCommandRequest> findCommand( query_request_helper::makeFromFindCommandForTests(cmd, nss)); auto statusWithCQ = @@ -477,7 +477,7 @@ void QueryPlannerTest::runInvalidQueryAsCommand(const BSONObj& cmdObj) { // If there is no '$db', append it. auto cmd = OpMsgRequest::fromDBAndBody(nss.db(), cmdObj).body; - std::unique_ptr<FindCommand> findCommand( + std::unique_ptr<FindCommandRequest> findCommand( query_request_helper::makeFromFindCommandForTests(cmd, nss)); auto statusWithCQ = |