summaryrefslogtreecommitdiff
path: root/src/mongo/s/chunk_manager.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-11-12 16:36:42 -0500
committerDavid Storch <david.storch@10gen.com>2015-11-17 13:04:54 -0500
commit8c0443a33249b3aec2f94fc97017e1314ef3d53f (patch)
tree76b48915a444ca38efc4fc7f370bba78843a00bf /src/mongo/s/chunk_manager.h
parentfdd0ce979f615ca199ea443b1e10301e933ec18b (diff)
downloadmongo-8c0443a33249b3aec2f94fc97017e1314ef3d53f.tar.gz
SERVER-21441 faster shard targeting for equality queries on the shard key
Diffstat (limited to 'src/mongo/s/chunk_manager.h')
-rw-r--r--src/mongo/s/chunk_manager.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/s/chunk_manager.h b/src/mongo/s/chunk_manager.h
index a87d70f2fed..dd5b7ef7b81 100644
--- a/src/mongo/s/chunk_manager.h
+++ b/src/mongo/s/chunk_manager.h
@@ -196,8 +196,12 @@ public:
*/
ChunkPtr findIntersectingChunk(OperationContext* txn, const BSONObj& shardKey) const;
- void getShardIdsForQuery(std::set<ShardId>& shardIds, const BSONObj& query) const;
+ void getShardIdsForQuery(OperationContext* txn,
+ const BSONObj& query,
+ std::set<ShardId>* shardIds) const;
+
void getAllShardIds(std::set<ShardId>* all) const;
+
/** @param shardIds set to the shard ids for shards
* covered by the interval [min, max], see SERVER-4791
*/