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

Parse Optime only once in ReplicationConsistencyMarkersImpl::refreshOplogTruncateAfterPointIfPrimary

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

      ReplicationConsistencyMarkersImpl::refreshOplogTruncateAfterPointIfPrimary parses the Optime from an oplog entry twice. The code should be change parse it only once. Also, we should take advantage of IDL's ability to disable duplicate field checks.

      I have not measured the perf benefits of this change separately.

      POC: https://github.com/10gen/mongo/commit/096fabc8c3bc619bfa8b884fc2063f3a8d7cf884#diff-8d3dbd3c29a007065eacb3af7184c7225585b5f0d5d873eeeb981152f207daf0

            Assignee:
            scott.li@mongodb.com Scott Li (Inactive)
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: