diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-04-06 13:36:35 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-04-12 14:04:20 -0400 |
commit | 3c5ee8b721d3ea5b18d22527fcbea4e2e15e79ad (patch) | |
tree | de1c103b277da2e69f0dce58b13125d8afcd8146 /src/mongo/s/grid.h | |
parent | 9c2e3c15fc7874ea610bad23d9cafe46b22b1cb5 (diff) | |
download | mongo-3c5ee8b721d3ea5b18d22527fcbea4e2e15e79ad.tar.gz |
SERVER-22667 Move Chunk::pickSplitVector/MedianKey out of Chunk
The pickSplitVector and selectMedianKey utilities logically belong to the
balancer, so moving them out of the Chunk class and into shard_util.
The changes to balance.cpp have no functional effect, just rearranging
them to better match the balancer control flow and to make the subsequent
changes easier to follow.
Diffstat (limited to 'src/mongo/s/grid.h')
-rw-r--r-- | src/mongo/s/grid.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/s/grid.h b/src/mongo/s/grid.h index 1db22f630e8..7c96ab4e5cb 100644 --- a/src/mongo/s/grid.h +++ b/src/mongo/s/grid.h @@ -47,6 +47,12 @@ class ShardRegistry; class Grid { public: Grid(); + ~Grid(); + + /** + * Retrieves the instance of Grid associated with the current service context. + */ + static Grid* get(OperationContext* operationContext); /** * Called at startup time so the global sharding services can be set. This method must be called |