diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2016-02-25 10:10:59 -0500 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2016-02-29 09:34:43 -0500 |
commit | b2338b956c6808efc633428116e8534e495ee12c (patch) | |
tree | 2083a9a1cb37487ba599fa5c69060bde45d869d1 /src/mongo/s | |
parent | ff0846809805c5a9a961314d3b6ec9ed7bbe0947 (diff) | |
download | mongo-b2338b956c6808efc633428116e8534e495ee12c.tar.gz |
SERVER-17468 don't log balancer rounds to the actionlog if no chunks are moved
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/balance.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/s/balance.cpp b/src/mongo/s/balance.cpp index c6fd87c3a1e..939f682ef36 100644 --- a/src/mongo/s/balance.cpp +++ b/src/mongo/s/balance.cpp @@ -642,13 +642,13 @@ void Balancer::run() { } else { _balancedLastTime = _moveChunks(txn.get(), candidateChunks, secondaryThrottle, waitForDelete); - } - roundDetails.setSucceeded(static_cast<int>(candidateChunks.size()), - _balancedLastTime); + roundDetails.setSucceeded(static_cast<int>(candidateChunks.size()), + _balancedLastTime); - grid.catalogManager(txn.get()) - ->logAction(txn.get(), "balancer.round", "", roundDetails.toBSON()); + grid.catalogManager(txn.get()) + ->logAction(txn.get(), "balancer.round", "", roundDetails.toBSON()); + } LOG(1) << "*** End of balancing round"; } |