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

defer oplog reservation in collection_internal::deleteDocument()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2023-06-12

      In the delete code path, we currently reserve oplog slots for retryable findAndModify, which takes up replication resources, before calling OpObserver::aboutToDelete(), which does not really require the oplog resources and needs to notify numerous OpObserver implementations before completing.

      The oplog slots are needed for OpObserver::onDelete() to write the oplog entries so it would be beneficial to defer reserving the oplog slots until aboutToDelete() returnes.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: