Remove unnecessary iterations in balance_repl.js

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Sharding 2019-11-18
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There is no need to perform moveChunk multiple times. One should be enough:
      https://github.com/mongodb/mongo/blob/r4.3.0/jstests/sharding/balance_repl.js#L50

      Also delete outdated comment:
      https://github.com/mongodb/mongo/blob/r4.3.0/jstests/sharding/balance_repl.js#L51

            Assignee:
            Anton Oyung (Inactive)
            Reporter:
            Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: