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

merge OpStateAccumulator and InsertsOpStateAccumulator in OpObserver interface

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

      Most of the OpObserver methods use OpStateAccumulator with the exception of onInserts(), which uses InsertsOpStateAccumulator to hold multiple OpTimes.

      We should look into merging these two structs to provide a common data structure for all the OpObserver methods.

      One suggestion provided was to use a data structure such as absl::InlinedVector to combine the single/vector OpTime fields.

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

              Created:
              Updated:
              Resolved: