diff options
author | Eric Cox <eric.cox@mongodb.com> | 2021-08-19 10:51:21 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-19 11:30:11 +0000 |
commit | f73bbe772cc940a5451748b900cd28cba86eb48f (patch) | |
tree | 77602f2ec39d6025e7482fcda534d7a4756e3ed4 /src/mongo/dbtests/query_stage_multiplan.cpp | |
parent | 11c215d484165aa465bd16fbf8e0379d5f30aec0 (diff) | |
download | mongo-f73bbe772cc940a5451748b900cd28cba86eb48f.tar.gz |
SERVER-58424 Refactor QueryPlanner::plan() in preparation for DocumentSource pushdown
Diffstat (limited to 'src/mongo/dbtests/query_stage_multiplan.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_multiplan.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/dbtests/query_stage_multiplan.cpp b/src/mongo/dbtests/query_stage_multiplan.cpp index a0c2532aebd..e313eda05eb 100644 --- a/src/mongo/dbtests/query_stage_multiplan.cpp +++ b/src/mongo/dbtests/query_stage_multiplan.cpp @@ -397,9 +397,9 @@ TEST_F(QueryStageMultiPlanTest, MPSBackupPlan) { fillOutPlannerParams(_opCtx.get(), collection.getCollection(), cq.get(), &plannerParams); // Plan. - auto statusWithSolutions = QueryPlanner::plan(*cq, plannerParams); - ASSERT_OK(statusWithSolutions.getStatus()); - auto solutions = std::move(statusWithSolutions.getValue()); + auto&& [statusWithMultiPlanSolns, _] = QueryPlanner::plan(*cq, plannerParams); + ASSERT_OK(statusWithMultiPlanSolns.getStatus()); + auto solutions = std::move(statusWithMultiPlanSolns.getValue()); // We expect a plan using index {a: 1} and plan using index {b: 1} and // an index intersection plan. |