summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_planner.h
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2013-11-13 15:18:36 -0500
committerHari Khalsa <hkhalsa@10gen.com>2013-11-13 15:18:48 -0500
commit6e793a146df74a641f294618e560bf541796f3e0 (patch)
treeced8d3249eba70f2d3b9d558c1dfa0ed8751492b /src/mongo/db/query/query_planner.h
parent748093d2e57af5e6e2205546dc31d39a32af123b (diff)
downloadmongo-6e793a146df74a641f294618e560bf541796f3e0.tar.gz
SERVER-10026 fix shard filter comments
Diffstat (limited to 'src/mongo/db/query/query_planner.h')
-rw-r--r--src/mongo/db/query/query_planner.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/query/query_planner.h b/src/mongo/db/query/query_planner.h
index 4e12bb38264..2b3ef1079aa 100644
--- a/src/mongo/db/query/query_planner.h
+++ b/src/mongo/db/query/query_planner.h
@@ -48,6 +48,10 @@ namespace mongo {
// Set this if you're running on a sharded cluster. We'll add a "drop all docs that
// shouldn't be on this shard" stage before projection.
+ //
+ // In order to set this, you must check
+ // shardingState.needCollectionMetadata(current_namespace) in the same lock that you use
+ // to build the query runner.
INCLUDE_SHARD_FILTER = 4,
};