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

remove _nosleep check for balancer

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • 2.7.2
    • 2.4.3
    • Sharding
    • None
    • ALL
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: