Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
3.0.0, 3.2.3
-
Fully Compatible
-
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.