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).

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • None
    • None
    • Replication
    • None
    • Replication
    • Repl 2019-07-29, Repl 2019-08-12

    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.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-repl Backlog - Replication Team
              suganthi.mani@mongodb.com Suganthi Mani
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: