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

Do not re-create the _id_ index during cloning

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 3.0.0, 3.2.3
    • Fix Version/s: None
    • Component/s: Replication
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Repl 18 (08/05/16)

      Description

      In src/mongo/db/cloner.cpp:Cloner::copyDb

      • first time, copy data, create _id index to remove the dup _id items during initial sync.
      • second time, build index, remove all index, and then create

      When sync source have _id index, the secondary can just keep the _id index created when copy data, no need to do it twice.

        Attachments

          Activity

            People

            Assignee:
            scotthernandez Scott Hernandez
            Reporter:
            zyd_com Youdong Zhang
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: