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

Remove recursion from the MigrationManager

    XMLWordPrintableJSON

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: