From 89d75b1fe6bc12330b44f40507396c72da67b150 Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Tue, 19 Jul 2016 09:56:59 -0400 Subject: SERVER-24569 Cleanup CollectionMetadata and MetadataManager --- src/mongo/db/s/collection_metadata.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mongo/db/s/collection_metadata.cpp') diff --git a/src/mongo/db/s/collection_metadata.cpp b/src/mongo/db/s/collection_metadata.cpp index 5c16ace947b..8b713dd0cbd 100644 --- a/src/mongo/db/s/collection_metadata.cpp +++ b/src/mongo/db/s/collection_metadata.cpp @@ -48,6 +48,11 @@ using str::stream; CollectionMetadata::CollectionMetadata() = default; +CollectionMetadata::CollectionMetadata(const BSONObj& keyPattern, ChunkVersion collectionVersion) + : _collVersion(collectionVersion), + _shardVersion(ChunkVersion(0, 0, collectionVersion.epoch())), + _keyPattern(keyPattern.getOwned()) {} + CollectionMetadata::~CollectionMetadata() = default; std::unique_ptr CollectionMetadata::cloneMigrate( -- cgit v1.2.1