summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/planner_analysis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/planner_analysis.cpp')
-rw-r--r--src/mongo/db/query/planner_analysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/planner_analysis.cpp b/src/mongo/db/query/planner_analysis.cpp
index 4b19c1fac59..7cbc7116a92 100644
--- a/src/mongo/db/query/planner_analysis.cpp
+++ b/src/mongo/db/query/planner_analysis.cpp
@@ -585,7 +585,7 @@ bool canUseSimpleSort(const QuerySolutionNode& solnRoot,
// record ids along through the sorting process is wasted work when these ids will never be
// consumed later in the execution of the query. If the record ids are needed, however, then
// we can't use the simple sort stage.
- !(plannerParams.options & QueryPlannerParams::PRESERVE_RECORD_ID);
+ !cq.getForceGenerateRecordId();
}
boost::optional<const projection_ast::Projection*> attemptToGetProjectionFromQuerySolution(