summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/tenant_migration_donor_service.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/repl/tenant_migration_donor_service.cpp
parent24223334fac1d746f8483cb10eacc4d95e7fcf7c (diff)
downloadmongo-da77452821c355346d873a6b31160c101adc60de.tar.gz
SERVER-50656 Add cancellation support to WaitForMajorityService
Diffstat (limited to 'src/mongo/db/repl/tenant_migration_donor_service.cpp')
-rw-r--r--src/mongo/db/repl/tenant_migration_donor_service.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/tenant_migration_donor_service.cpp b/src/mongo/db/repl/tenant_migration_donor_service.cpp
index 9e42924363d..086e4d68bd1 100644
--- a/src/mongo/db/repl/tenant_migration_donor_service.cpp
+++ b/src/mongo/db/repl/tenant_migration_donor_service.cpp
@@ -570,7 +570,7 @@ TenantMigrationDonorService::Instance::_markStateDocAsGarbageCollectable(
ExecutorFuture<void> TenantMigrationDonorService::Instance::_waitForMajorityWriteConcern(
std::shared_ptr<executor::ScopedTaskExecutor> executor, repl::OpTime opTime) {
return WaitForMajorityService::get(_serviceContext)
- .waitUntilMajority(std::move(opTime))
+ .waitUntilMajority(std::move(opTime), CancelationToken::uncancelable())
.thenRunOn(**executor)
.then([this, self = shared_from_this()] {
stdx::lock_guard<Latch> lg(_mutex);