diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-07-13 14:45:43 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-07-20 11:13:26 -0400 |
commit | de40150ec3e267e126253ed4f4b9638d4c929abb (patch) | |
tree | 992c70dcaae828bcb744aabd81d8cc825c0f3f00 /src/mongo/s/chunk_manager.h | |
parent | 375fca85c9641e27936e2d4eb0b72078b3eea85c (diff) | |
download | mongo-de40150ec3e267e126253ed4f4b9638d4c929abb.tar.gz |
SERVER-24438 Extend mongos catalog to store collection default collation
Diffstat (limited to 'src/mongo/s/chunk_manager.h')
-rw-r--r-- | src/mongo/s/chunk_manager.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mongo/s/chunk_manager.h b/src/mongo/s/chunk_manager.h index e2178feddaf..9078129738c 100644 --- a/src/mongo/s/chunk_manager.h +++ b/src/mongo/s/chunk_manager.h @@ -63,7 +63,10 @@ public: explicit ChunkManager(const CollectionType& coll); // Creates an empty chunk manager for the namespace - ChunkManager(const std::string& ns, const ShardKeyPattern& pattern, bool unique); + ChunkManager(const std::string& ns, + const ShardKeyPattern& pattern, + const BSONObj& defaultCollation, + bool unique); const std::string& getns() const { return _ns; @@ -71,6 +74,9 @@ public: const ShardKeyPattern& getShardKeyPattern() const { return _keyPattern; } + const BSONObj& getDefaultCollation() const { + return _defaultCollation; + } bool isUnique() const { return _unique; } @@ -234,6 +240,7 @@ private: // All members should be const for thread-safety const std::string _ns; const ShardKeyPattern _keyPattern; + const BSONObj _defaultCollation; const bool _unique; // The shard versioning mechanism hinges on keeping track of the number of times we reload |