diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-03-14 17:33:49 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-03-19 22:42:29 -0400 |
commit | 3e53f0ce9cdff926473276a34a351972ea963a57 (patch) | |
tree | 73d8525cc4ed68faf3bb1c983510150841c4e872 /src/mongo/db/s/metadata_manager.h | |
parent | 914bbbd26a686e032fdddec964b109ea78c6e6f6 (diff) | |
download | mongo-3e53f0ce9cdff926473276a34a351972ea963a57.tar.gz |
SERVER-27681 Use CatalogCache to load metadata on shards
This change gets rid of the MetadataLoader in place of using the
CatalogCache for loading chunk metadata on shards. This ensures that the
same concurrency control and rate limiting applies on mongos and mongod
and obviates the need for having different kinds of ChunkDiffer.
Diffstat (limited to 'src/mongo/db/s/metadata_manager.h')
-rw-r--r-- | src/mongo/db/s/metadata_manager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/metadata_manager.h b/src/mongo/db/s/metadata_manager.h index 44ab0dbbf71..5c2e7f2e64a 100644 --- a/src/mongo/db/s/metadata_manager.h +++ b/src/mongo/db/s/metadata_manager.h @@ -243,8 +243,8 @@ public: /** * Dereferencing the ScopedCollectionMetadata will dereference the internal CollectionMetadata. */ - CollectionMetadata* operator->(); - CollectionMetadata* getMetadata(); + CollectionMetadata* operator->() const; + CollectionMetadata* getMetadata() const; /** * True if the ScopedCollectionMetadata stores a metadata (is not empty) |