diff options
author | Sophia Tan <sophia_tll@hotmail.com> | 2022-04-14 16:41:50 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-14 18:21:59 +0000 |
commit | d568014e161d2386a47318ceed842c45c1006990 (patch) | |
tree | ec217db5573f4a35f75633b160b78996477ccc55 /src/mongo/db/commands | |
parent | 06625aa0a8fc826d9d5d80e8604b0456ffcd7d4a (diff) | |
download | mongo-d568014e161d2386a47318ceed842c45c1006990.tar.gz |
SERVER-63206 Change CollectionCatalog::_viewsForDatabase to be keyed by TenantDatabaseName
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r-- | src/mongo/db/commands/list_collections.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/commands/validate_db_metadata_cmd.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/list_collections.cpp b/src/mongo/db/commands/list_collections.cpp index f78cfda6308..bc144913d4f 100644 --- a/src/mongo/db/commands/list_collections.cpp +++ b/src/mongo/db/commands/list_collections.cpp @@ -453,7 +453,7 @@ public: ListCollectionsFilter::makeTypeCollectionFilter()); if (!skipViews) { - catalog->iterateViews(opCtx, dbName, [&](const ViewDefinition& view) { + catalog->iterateViews(opCtx, tenantDbName, [&](const ViewDefinition& view) { if (authorizedCollections && !as->isAuthorizedForAnyActionOnResource( ResourcePattern::forExactNamespace(view.name()))) { diff --git a/src/mongo/db/commands/validate_db_metadata_cmd.cpp b/src/mongo/db/commands/validate_db_metadata_cmd.cpp index c3a00ff74e6..f635336802f 100644 --- a/src/mongo/db/commands/validate_db_metadata_cmd.cpp +++ b/src/mongo/db/commands/validate_db_metadata_cmd.cpp @@ -145,7 +145,7 @@ public: // If there is no collection name present in the input, run validation against all // the collections. collectionCatalog->iterateViews( - opCtx, tenantDbName.dbName(), [this, opCtx](const ViewDefinition& view) { + opCtx, tenantDbName, [this, opCtx](const ViewDefinition& view) { return _validateView(opCtx, view); }); |