Remove use of _id in MigrationTypeand rely on ns_1_min_1 index instead

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2019-08-12
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      MigrationType relies on genID (https://github.com/mongodb/mongo/blob/master/src/mongo/db/s/balancer/type_migration.h#L89) in its getName function. Remove any uses of genID, and thus getName, in favor or querying on the ns_1_min_1 index. 

      According to kaloian.manassiev here (https://mongodbcr.appspot.com/496100032/diff/476240012/src/mongo/db/s/balancer/type_migration.h#newcode89), this is only relevant to duplicate key handling.

            Assignee:
            James Heppenstall (Inactive)
            Reporter:
            James Heppenstall (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: