summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection.h
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2022-03-23 21:58:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-01 00:08:33 +0000
commite683ab82364fe2a9923e9035aa5eb6f8f197fbc8 (patch)
tree281a272cc76ce0087d7a4219c2acc0e7a77a7a18 /src/mongo/db/catalog/collection.h
parent9be91a1223cd166ce515e4b6b2abd9bd604ebfbe (diff)
downloadmongo-e683ab82364fe2a9923e9035aa5eb6f8f197fbc8.tar.gz
SERVER-64606 Remove TenantNamespace
Diffstat (limited to 'src/mongo/db/catalog/collection.h')
-rw-r--r--src/mongo/db/catalog/collection.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mongo/db/catalog/collection.h b/src/mongo/db/catalog/collection.h
index 1ebc19fcdd6..47384e3d346 100644
--- a/src/mongo/db/catalog/collection.h
+++ b/src/mongo/db/catalog/collection.h
@@ -53,7 +53,6 @@
#include "mongo/db/storage/capped_callback.h"
#include "mongo/db/storage/record_store.h"
#include "mongo/db/storage/snapshot.h"
-#include "mongo/db/tenant_namespace.h"
#include "mongo/db/yieldable.h"
#include "mongo/logv2/log_attr.h"
#include "mongo/platform/mutex.h"
@@ -198,7 +197,7 @@ public:
* only constructs an in-memory representation of what already exists on disk.
*/
virtual std::shared_ptr<Collection> make(OperationContext* opCtx,
- const TenantNamespace& tenantNs,
+ const NamespaceString& nss,
RecordId catalogId,
const CollectionOptions& options,
std::unique_ptr<RecordStore> rs) const = 0;
@@ -209,7 +208,7 @@ public:
*/
virtual std::shared_ptr<Collection> make(
OperationContext* opCtx,
- const TenantNamespace& tenantNs,
+ const NamespaceString& nss,
RecordId catalogId,
std::shared_ptr<BSONCollectionCatalogEntry::MetaData> metadata,
std::unique_ptr<RecordStore> rs) const = 0;
@@ -304,8 +303,6 @@ public:
virtual const NamespaceString& ns() const = 0;
- virtual const TenantNamespace& tenantNs() const = 0;
-
/**
* Sets a new namespace on this Collection, in the case that the Collection is being renamed.
* In general, reads and writes to Collection objects are synchronized using locks from the lock
@@ -313,9 +310,7 @@ public:
* CollectionCatalog can perform UUID to namespace lookup without holding a Collection lock. See
* CollectionCatalog::onCollectionRename().
*/
- virtual Status rename(OperationContext* opCtx,
- const TenantNamespace& tenantNs,
- bool stayTemp) = 0;
+ virtual Status rename(OperationContext* opCtx, const NamespaceString& nss, bool stayTemp) = 0;
virtual RecordId getCatalogId() const = 0;