diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-09-21 11:08:06 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-09-22 09:16:40 -0400 |
commit | 9123d2d3263ea56d8651ba9d4cf5ad1158d939cb (patch) | |
tree | bddf1cbf162fca2acb3312604c5949cce3941021 /src/mongo/db/query/query_planner_params.h | |
parent | 416764e1c50f9c31ab9d9845d21b7d80062fee30 (diff) | |
download | mongo-9123d2d3263ea56d8651ba9d4cf5ad1158d939cb.tar.gz |
SERVER-18084 Remove usages of ShardingState::get(globalOperationContext())
So that call can be removed in place of the variant, which accepts
OperationContext.
Diffstat (limited to 'src/mongo/db/query/query_planner_params.h')
-rw-r--r-- | src/mongo/db/query/query_planner_params.h | 7 |
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 |