diff options
Diffstat (limited to 'src/mongo/s/chunk_manager.h')
-rw-r--r-- | src/mongo/s/chunk_manager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/chunk_manager.h b/src/mongo/s/chunk_manager.h index 35b16ace0da..0dd74ba1711 100644 --- a/src/mongo/s/chunk_manager.h +++ b/src/mongo/s/chunk_manager.h @@ -54,7 +54,7 @@ class OperationContext; typedef std::shared_ptr<ChunkManager> ChunkManagerPtr; // The key for the map is max for each Chunk or ChunkRange -typedef std::map<BSONObj, std::shared_ptr<Chunk>, BSONObjCmp> ChunkMap; +typedef BSONObjIndexedMap<std::shared_ptr<Chunk>> ChunkMap; class ChunkManager { public: @@ -237,7 +237,7 @@ private: // Contains a compressed map of what range of keys resides on which shard. The index is the max // key of the respective range and the union of all ranges in a such constructed map must cover // the complete space from [MinKey, MaxKey). - using ChunkRangeMap = std::map<BSONObj, ShardAndChunkRange, BSONObjCmp>; + using ChunkRangeMap = BSONObjIndexedMap<ShardAndChunkRange>; /** * If load was successful, returns true and it is guaranteed that the _chunkMap and |