Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9710

remove _nosleep check for balancer

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.7.2
    • Affects Version/s: 2.4.3
    • Component/s: Sharding
    • None
    • ALL
    • 0
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: