diff options
author | Pierlauro Sciarelli <pierlauro.sciarelli@mongodb.com> | 2022-05-31 09:05:40 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-31 19:46:52 +0000 |
commit | 44bc738a28df8a149638b3ca358b0398f6eb542b (patch) | |
tree | 3786038d2228c2da10d3ecb117ec2cef9a2585fe | |
parent | 459b223f3572edcd164cf5754bc2a1c3e7eb7d66 (diff) | |
download | mongo-44bc738a28df8a149638b3ca358b0398f6eb542b.tar.gz |
SERVER-66720 Interrupt migration-related commands on CSRS upon stepdown
-rw-r--r-- | src/mongo/db/s/balancer/balancer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/balancer/balancer.cpp b/src/mongo/db/s/balancer/balancer.cpp index 302fb24b3d7..d241dee3936 100644 --- a/src/mongo/db/s/balancer/balancer.cpp +++ b/src/mongo/db/s/balancer/balancer.cpp @@ -356,7 +356,7 @@ Status Balancer::rebalanceSingleChunk(OperationContext* opCtx, auto response = _commandScheduler ->requestMoveChunk(opCtx, *migrateInfo, settings, true /* issuedByRemoteUser */) - .getNoThrow(); + .getNoThrow(opCtx); return processManualMigrationOutcome(opCtx, chunk.getMin(), nss, migrateInfo->to, response); } @@ -385,7 +385,7 @@ Status Balancer::moveSingleChunk(OperationContext* opCtx, auto response = _commandScheduler ->requestMoveChunk(opCtx, migrateInfo, settings, true /* issuedByRemoteUser */) - .getNoThrow(); + .getNoThrow(opCtx); return processManualMigrationOutcome(opCtx, chunk.getMin(), nss, newShardId, response); } @@ -418,7 +418,7 @@ Status Balancer::moveRange(OperationContext* opCtx, auto response = _commandScheduler->requestMoveRange(opCtx, shardSvrRequest, wc, issuedByRemoteUser) - .getNoThrow(); + .getNoThrow(opCtx); return processManualMigrationOutcome( opCtx, min, nss, shardSvrRequest.getToShard(), std::move(response)); } |