diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-10-07 15:37:23 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-10-10 18:05:27 -0400 |
commit | a43da01b5124d89dea500819cbac0e55eb76961a (patch) | |
tree | a7035c490bc06b80740f1a8d111a49005b18503e /src/mongo/db/s/collection_metadata.h | |
parent | 8189acb7e18a8cb2c9564ae53c11d2e4c8ea05ae (diff) | |
download | mongo-a43da01b5124d89dea500819cbac0e55eb76961a.tar.gz |
SERVER-25665 Remove cloneSplit and cloneMerge from CollectionMetadata
Diffstat (limited to 'src/mongo/db/s/collection_metadata.h')
-rw-r--r-- | src/mongo/db/s/collection_metadata.h | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/src/mongo/db/s/collection_metadata.h b/src/mongo/db/s/collection_metadata.h index 796f1d92515..2e9d6694220 100644 --- a/src/mongo/db/s/collection_metadata.h +++ b/src/mongo/db/s/collection_metadata.h @@ -83,32 +83,6 @@ public: std::unique_ptr<CollectionMetadata> clonePlusPending(const ChunkType& chunk) const; /** - * Returns a new metadata's instance by splitting an existing 'chunk' at the points - * described by 'splitKeys'. The first resulting chunk will have 'newShardVersion' and - * subsequent one would have that with the minor version incremented at each chunk. The - * caller owns the metadata. - * - * If a new metadata can't be created returns a failed status. - * - * Note: 'splitKeys' must be sorted in ascending order. - */ - StatusWith<std::unique_ptr<CollectionMetadata>> cloneSplit( - const BSONObj& minKey, - const BSONObj& maxKey, - const std::vector<BSONObj>& splitKeys, - const ChunkVersion& newShardVersion) const; - - /** - * Returns a new metadata instance by merging a key range which starts and ends at existing - *chunks into a single chunk. The range may not have holes. The resulting metadata will have the - *'newShardVersion'. - * - * If a new metadata can't be created, returns a failed status. - */ - StatusWith<std::unique_ptr<CollectionMetadata>> cloneMerge( - const BSONObj& minKey, const BSONObj& maxKey, const ChunkVersion& newShardVersion) const; - - /** * Returns true if the document key 'key' is a valid instance of a shard key for this * metadata. The 'key' must contain exactly the same fields as the shard key pattern. */ @@ -205,6 +179,9 @@ public: */ void toBSONPending(BSONArrayBuilder& bb) const; + /** + * String output of the collection and shard versions. + */ std::string toStringBasic() const; /** |