summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
diff options
context:
space:
mode:
authorCheahuychou Mao <cheahuychou.mao@mongodb.com>2020-09-10 22:06:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-17 18:42:37 +0000
commit96f566cef77449cf4dd304840fe770393106fc65 (patch)
treebb16ad0219c6ca38a214566f539d7be53c8d1047 /src/mongo/db/commands
parenta7714cfefeb609b30bbf2d9340418ce809d32146 (diff)
downloadmongo-96f566cef77449cf4dd304840fe770393106fc65.tar.gz
SERVER-50616 TenantMigrationDonor should retry its steps until success, the donor node is stepping down or shutting down, or the donor gets an error that should lead to an abort decision
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r--src/mongo/db/commands/tenant_migration_donor_cmds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/tenant_migration_donor_cmds.cpp b/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
index 5478df86f57..0cf8d415ac9 100644
--- a/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
+++ b/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
@@ -88,7 +88,7 @@ public:
TenantMigrationDonorService::Instance::getOrCreate(donorService, donorStateDoc);
uassertStatusOK(donor->checkIfOptionsConflict(donorStateDoc));
- donor->getDecisionFuture().get();
+ donor->getDecisionFuture().get(opCtx);
}
void doCheckAuthorization(OperationContext* opCtx) const {}
@@ -182,7 +182,7 @@ public:
donor);
donor.get().get()->onReceiveDonorForgetMigration();
- donor.get().get()->getCompletionFuture().get();
+ donor.get().get()->getCompletionFuture().get(opCtx);
}
private: