-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.0.0, 3.2.3
-
Component/s: Replication
-
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.