migrate OperationContext decorations to OplogDeleteEntryArgs for delete operations

XMLWordPrintableJSON

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

      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.

            Assignee:
            Benety Goh
            Reporter:
            Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: