diff options
author | Nathan Myers <nathan.myers@10gen.com> | 2017-01-15 23:53:29 -0500 |
---|---|---|
committer | Nathan Myers <nathan.myers@10gen.com> | 2017-01-23 17:06:29 -0500 |
commit | 94be1956ffa4af698132bd7d65f8b79092566897 (patch) | |
tree | 4d081a640df3ba50052a198226a29d4986a18950 /src/mongo/db/s/balancer/balancer.cpp | |
parent | eef6335bbc0eedeb6f50120164ca0f198fb94303 (diff) | |
download | mongo-94be1956ffa4af698132bd7d65f8b79092566897.tar.gz |
SERVER-27550 Delete dead balancer dist lock code
Diffstat (limited to 'src/mongo/db/s/balancer/balancer.cpp')
-rw-r--r-- | src/mongo/db/s/balancer/balancer.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mongo/db/s/balancer/balancer.cpp b/src/mongo/db/s/balancer/balancer.cpp index 0d619753baf..23f1aaf0989 100644 --- a/src/mongo/db/s/balancer/balancer.cpp +++ b/src/mongo/db/s/balancer/balancer.cpp @@ -313,22 +313,6 @@ void Balancer::_mainThread() { const Seconds kInitBackoffInterval(10); - // Take the balancer distributed lock and hold it permanently. Do the attempts with single - // attempts in order to not block the thread and be able to check for interrupt more frequently. - while (!_stopRequested()) { - auto status = _migrationManager.tryTakeBalancerLock(txn.get(), "CSRS Balancer"); - if (!status.isOK()) { - log() << "Balancer distributed lock could not be acquired and will be retried in " - << durationCount<Seconds>(kInitBackoffInterval) << " seconds" - << causedBy(redact(status)); - - _sleepFor(txn.get(), kInitBackoffInterval); - continue; - } - - break; - } - auto balancerConfig = shardingContext->getBalancerConfiguration(); while (!_stopRequested()) { Status refreshStatus = balancerConfig->refreshAndCheck(txn.get()); |