summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_planner_params.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/query_planner_params.h')
-rw-r--r--src/mongo/db/query/query_planner_params.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/query/query_planner_params.h b/src/mongo/db/query/query_planner_params.h
index 13794c5ae91..226c059c912 100644
--- a/src/mongo/db/query/query_planner_params.h
+++ b/src/mongo/db/query/query_planner_params.h
@@ -58,10 +58,9 @@ struct QueryPlannerParams {
// shouldn't be on this shard" stage before projection.
//
// In order to set this, you must check
- // ShardingState::get(getGlobalServiceContext())->needCollectionMetadata(current_namespace)
- // in the same lock that you use
- // to build the query executor. You must also wrap the PlanExecutor in a ClientCursor
- // within the same lock. See the comment on ShardFilterStage for details.
+ // ShardingState::needCollectionMetadata(current_namespace) in the same lock that you use to
+ // build the query executor. You must also wrap the PlanExecutor in a ClientCursor within
+ // the same lock. See the comment on ShardFilterStage for details.
INCLUDE_SHARD_FILTER = 1 << 2,
// Set this if you don't want any plans with a blocking sort stage. All sorts must be