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

Remove use of _id in MigrationTypeand rely on ns_1_min_1 index instead

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

      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:
            jamie.heppenstall@mongodb.com James Heppenstall (Inactive)
            Reporter:
            jamie.heppenstall@mongodb.com James Heppenstall (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: