summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/database_cloner.cpp
diff options
context:
space:
mode:
authorSophia Tan <sophia_tll@hotmail.com>2023-02-23 00:28:52 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-23 06:20:56 +0000
commit26ab9caac209c31ab6b51a71e241699e12875833 (patch)
treed228c7575cc5f7a422f4901f2b25f7e9afbce200 /src/mongo/db/repl/database_cloner.cpp
parent30d0c50b89881e6970627093bdae476a2fcc338e (diff)
downloadmongo-26ab9caac209c31ab6b51a71e241699e12875833.tar.gz
SERVER-73189 Change DbClient runCommandWithTarget to take in a DatabaseName object
Diffstat (limited to 'src/mongo/db/repl/database_cloner.cpp')
-rw-r--r--src/mongo/db/repl/database_cloner.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mongo/db/repl/database_cloner.cpp b/src/mongo/db/repl/database_cloner.cpp
index 6b90cddcb2f..b19708702d1 100644
--- a/src/mongo/db/repl/database_cloner.cpp
+++ b/src/mongo/db/repl/database_cloner.cpp
@@ -71,13 +71,8 @@ void DatabaseCloner::preStage() {
BaseCloner::AfterStageBehavior DatabaseCloner::listCollectionsStage() {
BSONObj res;
- auto dollarTenant = gMultitenancySupport &&
- serverGlobalParams.featureCompatibility.isVersionInitialized() &&
- gFeatureFlagRequireTenantID.isEnabled(serverGlobalParams.featureCompatibility)
- ? _dbName.tenantId()
- : boost::none;
- auto collectionInfos = getClient()->getCollectionInfos(
- _dbName, ListCollectionsFilter::makeTypeCollectionFilter(), dollarTenant);
+ auto collectionInfos =
+ getClient()->getCollectionInfos(_dbName, ListCollectionsFilter::makeTypeCollectionFilter());
const auto storageEngine = getGlobalServiceContext()->getStorageEngine();
stdx::unordered_set<std::string> seen;