diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-06-23 15:50:30 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-06-26 12:23:42 -0400 |
commit | 862af7cdac5b9b9740335fd476209cd455f84c91 (patch) | |
tree | 95e7c9f7cb5ba435972fc06ec151ee5a6a6bea27 /src/mongo/s/catalog_cache_loader.h | |
parent | 9724f3eb2a41982b0414e5fb518bf77d20b45232 (diff) | |
download | mongo-862af7cdac5b9b9740335fd476209cd455f84c91.tar.gz |
SERVER-29325 add constructors for CollectionAndChangedChunks struct
Diffstat (limited to 'src/mongo/s/catalog_cache_loader.h')
-rw-r--r-- | src/mongo/s/catalog_cache_loader.h | 9 |
1 files changed, 8 insertions, 1 deletions
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<ChunkType> 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. |