summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_impl.h
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2019-11-06 16:24:40 +0000
committerevergreen <evergreen@mongodb.com>2019-11-06 16:24:40 +0000
commit39c08aceaf7fa15a8e65cf80b09863b452425426 (patch)
tree7efc9eab66c71f8894c7ebf6dee8b0ee649dec18 /src/mongo/db/catalog/collection_impl.h
parent0ff5e5e7cc09c31d3fe260cf6602f461e6e20bb6 (diff)
downloadmongo-39c08aceaf7fa15a8e65cf80b09863b452425426.tar.gz
SERVER-44276: Change storage engine catalog map to be keyed by RecordId instead of Namespace.
Diffstat (limited to 'src/mongo/db/catalog/collection_impl.h')
-rw-r--r--src/mongo/db/catalog/collection_impl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/collection_impl.h b/src/mongo/db/catalog/collection_impl.h
index a33c507ecda..5e60d4b91db 100644
--- a/src/mongo/db/catalog/collection_impl.h
+++ b/src/mongo/db/catalog/collection_impl.h
@@ -44,6 +44,7 @@ public:
explicit CollectionImpl(OperationContext* opCtx,
const NamespaceString& nss,
+ RecordId catalogId,
UUID uuid,
std::unique_ptr<RecordStore> recordStore);
@@ -53,6 +54,7 @@ public:
public:
std::unique_ptr<Collection> make(OperationContext* opCtx,
const NamespaceString& nss,
+ RecordId catalogId,
CollectionUUID uuid,
std::unique_ptr<RecordStore> rs) const final;
};
@@ -63,6 +65,10 @@ public:
void setNs(NamespaceString nss) final;
+ RecordId getCatalogId() const {
+ return _catalogId;
+ }
+
UUID uuid() const {
return _uuid;
}
@@ -357,6 +363,7 @@ private:
OpDebug* opDebug);
NamespaceString _ns;
+ RecordId _catalogId;
UUID _uuid;
// The RecordStore may be null during a repair operation.