diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-06-25 09:36:06 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-06-26 09:50:20 -0400 |
commit | 2aa65a86193e5d38934a4f2d6b0a8298e2432485 (patch) | |
tree | f3819f52b87366918bf18d40b4e8c8b19d8a85a8 /src/mongo/db/s/collection_metadata.h | |
parent | b2cbb83011c68aa44242bc4737cca1e6951e8796 (diff) | |
download | mongo-2aa65a86193e5d38934a4f2d6b0a8298e2432485.tar.gz |
SERVER-35773 Remove references to the CatalogCache from MetadataManager
Diffstat (limited to 'src/mongo/db/s/collection_metadata.h')
-rw-r--r-- | src/mongo/db/s/collection_metadata.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/s/collection_metadata.h b/src/mongo/db/s/collection_metadata.h index eb76bcc720a..0c97a0531ec 100644 --- a/src/mongo/db/s/collection_metadata.h +++ b/src/mongo/db/s/collection_metadata.h @@ -56,6 +56,13 @@ public: CollectionMetadata(std::shared_ptr<ChunkManager> cm, const ShardId& thisShardId); /** + * Obtains the shard id with which this collection metadata is configured. + */ + const ShardId& shardId() const { + return _thisShardId; + } + + /** * Returns true if 'key' contains exactly the same fields as the shard key pattern. */ bool isValidKey(const BSONObj& key) const { |