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

Refactor appendFieldsForStartTransaction

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Cluster Scalability

      This code re-checks that the input cmdObj is in sync with the parsed readConcernArgs (i.e., that we didn't swap majority for local or snapshot somewhere along the command execution path). This is very error prone and wasteful and a better architecture would be if cmdObj was not allowed to contain any read concern arguments so that we can just append the ones passed to the function.

      https://github.com/10gen/mongo/blob/e3d867d884892e7e59c50704e3eee1f81c55ccd5/src/mongo/s/transaction_router.h#L759

            Assignee:
            backlog-server-cluster-scalability [DO NOT USE] Backlog - Cluster Scalability
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: