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

migrate OperationContext decorations to OplogDeleteEntryArgs for delete operations

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2023-05-29, Execution Team 2023-06-12

    Description

      When we are replicating delete operations on a collection, we make a pair of calls to the OpObserver interface to notify listeners of the beginning (aboutToDelete) and end (onDelete) of the delete operation. OpObserver implementations sometimes (using FreeMonOpObserver as an example) have to stash some state in aboutToDelete()* that will be picked up in onDelete(). Typically this is accomplished by attaching the temporary state to the OperationContext as a decorator.

      This ticket explores an alternative to the OperationContext decorations by making the OplogDeleteEntryArgs a decorable type and having the OpObservers stash the temporary state in the OplogDeleteEntryArgs struct instead.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: