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

Cleanup setMyLast(Durable|Applied)OpTimeAndWallTime in ReplicationCoordinator

    • Replication
    • Fully Compatible
    • Repl 2023-12-11, Repl 2023-12-25

      Currently, for updating lastDurable and lastApplied timestamp in ReplicationCoordinator, we have four functions:

      • setMyLastAppliedOpTimeAndWallTimeForward -> Used by OplogApplier
      • setMyLastDurableOpTimeAndWallTimeForward -> Used by ReplicationCoordinatorExternalState::onDurable
      • setMyLastAppliedOpTimeAndWallTime -> Not used at all
      • setMyLastDurableOpTimeAndWallTime -> We can use setMyLastDurableOpTimeAndWallTimeForward instead if this comment is true.

      We can cleanup the interfaces to only keep one function for updating lastApplied and lastDurable respectively.
       

            Assignee:
            jiawei.yang@mongodb.com Jiawei Yang
            Reporter:
            jiawei.yang@mongodb.com Jiawei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: