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

remove Error Status construction for every applyOp'd op

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • Execution Team 2019-09-09, Execution Team 2019-09-23

      https://github.com/mongodb/mongo/blob/cb65f662017c8661cec0f4e07d08b829a1a67ad6/src/mongo/db/repl/apply_ops.cpp#L129

      This line of code is hinted as Cold to the compiler, which can affect branch prediction and performance. We should refactor to remove this line or replace it with one that uses Status::OK, which is not hinted as Cold.

            Assignee:
            evgeni.dobranov@mongodb.com Evgeni Dobranov
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: