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

Remove unnecessary iterations in balance_repl.js

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

      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@mongodb.com Anton Oyung
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: