summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_impl.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-11-17 06:35:04 -0500
committerBenety Goh <benety@mongodb.com>2018-11-17 06:35:04 -0500
commit5f077776ba56885494fd1baa343c1bab43095d0a (patch)
treeebd3c3497aa93fe0f5a65a2083b743188c4d75f3 /src/mongo/db/catalog/collection_impl.h
parente8bb6820e6b5b897478be86d806c968b20b30041 (diff)
downloadmongo-5f077776ba56885494fd1baa343c1bab43095d0a.tar.gz
SERVER-38166 unshim CollectionInfoCache
Diffstat (limited to 'src/mongo/db/catalog/collection_impl.h')
-rw-r--r--src/mongo/db/catalog/collection_impl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/catalog/collection_impl.h b/src/mongo/db/catalog/collection_impl.h
index e33f77d91c9..9005a2c263a 100644
--- a/src/mongo/db/catalog/collection_impl.h
+++ b/src/mongo/db/catalog/collection_impl.h
@@ -69,11 +69,11 @@ public:
}
CollectionInfoCache* infoCache() final {
- return &_infoCache;
+ return _infoCache.get();
}
const CollectionInfoCache* infoCache() const final {
- return &_infoCache;
+ return _infoCache.get();
}
const NamespaceString& ns() const final {
@@ -403,7 +403,7 @@ private:
RecordStore* const _recordStore;
DatabaseCatalogEntry* const _dbce;
const bool _needCappedLock;
- CollectionInfoCache _infoCache;
+ std::unique_ptr<CollectionInfoCache> _infoCache;
std::unique_ptr<IndexCatalog> _indexCatalog;