summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog_cache_loader.h
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2017-06-23 15:50:30 -0400
committerDianna Hohensee <dianna.hohensee@10gen.com>2017-06-26 12:23:42 -0400
commit862af7cdac5b9b9740335fd476209cd455f84c91 (patch)
tree95e7c9f7cb5ba435972fc06ec151ee5a6a6bea27 /src/mongo/s/catalog_cache_loader.h
parent9724f3eb2a41982b0414e5fb518bf77d20b45232 (diff)
downloadmongo-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.h9
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.