diff options
Diffstat (limited to 'src/mongo/db/commands/dbhash.cpp')
-rw-r--r-- | src/mongo/db/commands/dbhash.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/dbhash.cpp b/src/mongo/db/commands/dbhash.cpp index d767fa8c112..5a0df7236f3 100644 --- a/src/mongo/db/commands/dbhash.cpp +++ b/src/mongo/db/commands/dbhash.cpp @@ -234,7 +234,7 @@ public: std::set<std::string> cappedCollectionSet; bool noError = true; - const TenantDatabaseName tenantDbName(boost::none, dbname); + const DatabaseName tenantDbName(boost::none, dbname); catalog::forEachCollectionFromDb( opCtx, tenantDbName, MODE_IS, [&](const CollectionPtr& collection) { auto collNss = collection->ns(); @@ -344,7 +344,7 @@ private: << minSnapshot->toString(), !minSnapshot || *mySnapshot >= *minSnapshot); } else { - invariant(opCtx->lockState()->isDbLockedForMode(db->name().dbName(), MODE_S)); + invariant(opCtx->lockState()->isDbLockedForMode(db->name().db(), MODE_S)); } auto desc = collection->getIndexCatalog()->findIdIndex(opCtx); |