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

Remove unused oplog insert code from CollectionImpl::insertDocumentForBulkLoader which is only used by CollectionBulkLoader(initial sync collection cloner).

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Replication
    • Repl 2019-07-29, Repl 2019-08-12

      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.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: