[SERVER-41890] Remove unused oplog insert code from CollectionImpl::insertDocumentForBulkLoader which is only used by CollectionBulkLoader(initial sync collection cloner). Created: 24/Jun/19 Updated: 06/Dec/22 Resolved: 25/Jul/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Suganthi Mani | Assignee: | Backlog - Replication Team |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Replication
|
||||||||
| Sprint: | Repl 2019-07-29, Repl 2019-08-12 | ||||||||
| Participants: | |||||||||
| Description |
|
CollectionImpl::insertDocumentForBulkLoader perform oplog writes and this function is called only by CollectionBulkLoaderImpl::insertDocuments. CollectionBulkLoader is only used by initial sync collection cloner which should not perform oplog writes during collection writes. So, its good to remove the unsed oplog write code block to avoid confusion and add an invariant to check that oplog writes are disabled when insertDocumentForBulkLoader() is called. |