diff options
Diffstat (limited to 'src/mongo/db/s/metadata_manager.h')
-rw-r--r-- | src/mongo/db/s/metadata_manager.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mongo/db/s/metadata_manager.h b/src/mongo/db/s/metadata_manager.h index 319db8180fb..0100ef59d28 100644 --- a/src/mongo/db/s/metadata_manager.h +++ b/src/mongo/db/s/metadata_manager.h @@ -32,8 +32,11 @@ #include <memory> #include "mongo/base/disallow_copying.h" +#include "mongo/db/namespace_string.h" #include "mongo/db/s/collection_metadata.h" +#include "mongo/db/service_context.h" #include "mongo/s/catalog/type_chunk.h" + #include "mongo/stdx/memory.h" namespace mongo { @@ -44,7 +47,7 @@ class MetadataManager { MONGO_DISALLOW_COPYING(MetadataManager); public: - MetadataManager(); + MetadataManager(ServiceContext* sc, NamespaceString nss); ~MetadataManager(); /** @@ -127,6 +130,11 @@ private: void _setActiveMetadata_inlock(std::unique_ptr<CollectionMetadata> newMetadata); + const NamespaceString _nss; + + // ServiceContext from which to obtain instances of global support objects. + ServiceContext* _serviceContext; + // Mutex to protect the state below stdx::mutex _managerLock; |