summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/balancer
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2018-01-29 15:55:53 -0500
committerEsha Maharishi <esha.maharishi@mongodb.com>2018-02-05 15:54:12 -0500
commitd9a5489c3ff0672c2045c0940b89350f5eae1956 (patch)
tree7af8b8d65f2155716a7441d8b46ddda1efe8e35a /src/mongo/db/s/balancer
parent731a5ed5e2859ecc76b1b241c086406f9e6c3867 (diff)
downloadmongo-d9a5489c3ff0672c2045c0940b89350f5eae1956.tar.gz
SERVER-32984 clean up DatabaseType class
Diffstat (limited to 'src/mongo/db/s/balancer')
-rw-r--r--src/mongo/db/s/balancer/migration_manager_test.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/s/balancer/migration_manager_test.cpp b/src/mongo/db/s/balancer/migration_manager_test.cpp
index 72a32c50627..89fa1da483d 100644
--- a/src/mongo/db/s/balancer/migration_manager_test.cpp
+++ b/src/mongo/db/s/balancer/migration_manager_test.cpp
@@ -178,10 +178,7 @@ std::shared_ptr<RemoteCommandTargeterMock> MigrationManagerTest::shardTargeterMo
}
void MigrationManagerTest::setUpDatabase(const std::string& dbName, const ShardId primaryShard) {
- DatabaseType db;
- db.setName(dbName);
- db.setPrimary(primaryShard);
- db.setSharded(true);
+ DatabaseType db(dbName, primaryShard, true);
ASSERT_OK(catalogClient()->insertConfigDocument(
operationContext(), DatabaseType::ConfigNS, db.toBSON(), kMajorityWriteConcern));
}