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

Remove recursion from the MigrationManager

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.3.9
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 18 (08/05/16), Sharding 2016-08-29

      The MigrationManager's _executeMigrations method is currently recursive with no limit on the depth of recursion. In practice, this recursion should never be more than a couple of levels deep, because there aren't that many migrations happening per round, but for the sake of having a bullet-proof code we should rewrite it to not use recursion.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: