From 862af7cdac5b9b9740335fd476209cd455f84c91 Mon Sep 17 00:00:00 2001 From: Dianna Hohensee Date: Fri, 23 Jun 2017 15:50:30 -0400 Subject: SERVER-29325 add constructors for CollectionAndChangedChunks struct --- src/mongo/s/catalog_cache_loader.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/mongo/s/catalog_cache_loader.h') diff --git a/src/mongo/s/catalog_cache_loader.h b/src/mongo/s/catalog_cache_loader.h index e28bb13cd97..bb6a2095238 100644 --- a/src/mongo/s/catalog_cache_loader.h +++ b/src/mongo/s/catalog_cache_loader.h @@ -55,11 +55,18 @@ public: * Used as a return value for getChunksSince. */ struct CollectionAndChangedChunks { + CollectionAndChangedChunks(); + CollectionAndChangedChunks(const OID& collEpoch, + const BSONObj& collShardKeyPattern, + const BSONObj& collDefaultCollation, + bool collShardKeyIsUnique, + std::vector chunks); + // Information about the entire collection OID epoch; BSONObj shardKeyPattern; BSONObj defaultCollation; - bool shardKeyIsUnique; + bool shardKeyIsUnique{false}; // The chunks which have changed sorted by their chunkVersion. This list might potentially // contain all the chunks in the collection. -- cgit v1.2.1