summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/collection_sharding_runtime_test.cpp
diff options
context:
space:
mode:
authorGeorge Wangensteen <george.wangensteen@mongodb.com>2020-12-04 04:19:56 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-04 07:10:14 +0000
commitda77452821c355346d873a6b31160c101adc60de (patch)
tree31bd1abd879bbfe2755fc927be7dfed947eae606 /src/mongo/db/s/collection_sharding_runtime_test.cpp
parent24223334fac1d746f8483cb10eacc4d95e7fcf7c (diff)
downloadmongo-da77452821c355346d873a6b31160c101adc60de.tar.gz
SERVER-50656 Add cancellation support to WaitForMajorityService
Diffstat (limited to 'src/mongo/db/s/collection_sharding_runtime_test.cpp')
-rw-r--r--src/mongo/db/s/collection_sharding_runtime_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/collection_sharding_runtime_test.cpp b/src/mongo/db/s/collection_sharding_runtime_test.cpp
index 1779b75b60b..db87d219711 100644
--- a/src/mongo/db/s/collection_sharding_runtime_test.cpp
+++ b/src/mongo/db/s/collection_sharding_runtime_test.cpp
@@ -188,7 +188,7 @@ class CollectionShardingRuntimeWithRangeDeleterTest : public CollectionShardingR
public:
void setUp() override {
ShardServerTestFixture::setUp();
- WaitForMajorityService::get(getServiceContext()).setUp(getServiceContext());
+ WaitForMajorityService::get(getServiceContext()).startup(getServiceContext());
// Set up replication coordinator to be primary and have no replication delay.
auto replCoord = std::make_unique<repl::ReplicationCoordinatorMock>(getServiceContext());
replCoord->setCanAcceptNonLocalWrites(true);