diff options
author | Benety Goh <benety@mongodb.com> | 2018-11-17 06:35:04 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-11-17 06:35:04 -0500 |
commit | 5f077776ba56885494fd1baa343c1bab43095d0a (patch) | |
tree | ebd3c3497aa93fe0f5a65a2083b743188c4d75f3 /src/mongo/db/catalog/collection_impl.h | |
parent | e8bb6820e6b5b897478be86d806c968b20b30041 (diff) | |
download | mongo-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.h | 6 |
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; |