diff options
Diffstat (limited to 'jstests/aggregation/sources/project/remove_redundant_projects.js')
-rw-r--r-- | jstests/aggregation/sources/project/remove_redundant_projects.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/aggregation/sources/project/remove_redundant_projects.js b/jstests/aggregation/sources/project/remove_redundant_projects.js index b5aa4ed7d31..2ab081f77a8 100644 --- a/jstests/aggregation/sources/project/remove_redundant_projects.js +++ b/jstests/aggregation/sources/project/remove_redundant_projects.js @@ -46,10 +46,10 @@ function assertResultsMatch({ if (pipelineOptimizedAway) { assert(isQueryPlan(explain), explain); - result = explain.queryPlanner.winningPlan; + result = getWinningPlan(explain.queryPlanner); } else { assert(isAggregationPlan(explain), explain); - result = explain.stages[0].$cursor.queryPlanner.winningPlan; + result = getWinningPlan(explain.stages[0].$cursor.queryPlanner); } // Check that $project uses the query system. |