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

Do not re-create the _id_ index during cloning

    • Fully Compatible
    • Repl 18 (08/05/16)

      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.

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            zyd_com@126.com Zhang Youdong
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: