diff options
Diffstat (limited to 'src/mongo/db/s')
-rw-r--r-- | src/mongo/db/s/config/sharding_catalog_manager_add_shard_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/config/sharding_catalog_manager_add_shard_test.cpp b/src/mongo/db/s/config/sharding_catalog_manager_add_shard_test.cpp index 8b4793868c6..1ec6b87f2cc 100644 --- a/src/mongo/db/s/config/sharding_catalog_manager_add_shard_test.cpp +++ b/src/mongo/db/s/config/sharding_catalog_manager_add_shard_test.cpp @@ -387,6 +387,8 @@ TEST_F(AddShardTest, StandaloneBasicSuccess) { DatabaseType discoveredDB1("TestDB1", ShardId("StandaloneShard"), false); DatabaseType discoveredDB2("TestDB2", ShardId("StandaloneShard"), false); + operationContext()->setWriteConcern(ShardingCatalogClient::kMajorityWriteConcern); + auto future = launchAsync([this, expectedShardName] { Client::initThreadIfNotAlready(); auto shardName = @@ -418,7 +420,6 @@ TEST_F(AddShardTest, StandaloneBasicSuccess) { expectShardIdentityUpsertReturnSuccess(shardTarget, expectedShardName); // The shard receives the setFeatureCompatibilityVersion command. - operationContext()->setWriteConcern(ShardingCatalogClient::kMajorityWriteConcern); expectSetFeatureCompatibilityVersion( shardTarget, BSON("ok" << 1), operationContext()->getWriteConcern().toBSON()); |