[SERVER-9710] remove _nosleep check for balancer Created: 16/May/13  Updated: 04/Sep/14  Resolved: 05/Jun/14

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.4.3
Fix Version/s: 2.7.2

Type: Bug Priority: Trivial - P5
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

The _nosleep check was never correct and never used.

The logic looks reversed...

Balancer::run() @ s/balance.cpp

sleepTime = balancerConfig[SettingsType::shortBalancerSleep()].trueValue() ? 30 :
                                                                                             6;

However, nobody seems to be using it, even the tests.



 Comments   
Comment by Githook User [ 05/Jun/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-9710 remove _nosleep check for balancer
Branch: master
https://github.com/mongodb/mongo/commit/ec4f2ef38ccf83ac1e57d55bd00816f1db72df2f

Generated at Thu Feb 08 03:21:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.