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

Populate top-level tenantId field in transactions more efficiently

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • 3

      When creating oplog entries for transactions, the top-level tenantId field needs to match the individual ops contained in the applyOps array.  SERVER-69233 represents a quick-fix that was needed to unblock SERVER-66641 which addressed this issue, but we may want to look at a more efficient way of populating the tenantId than parsing the BSONObj document.

      The parsing is currently done in op_observer_impl.cpp, but we may wish to consider passing the tenantId down from commitTransaction/prepareTransaction calls instead.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: