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

Clean up unnecessary mutex acquisitions in tenant migration recipient service

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Replication

      We do not need to hold the tenant migration recipient service mutex while reading the state doc in the main chain. It should be impossible for another thread to be changing _stateDoc. 

      reportForCurrentOp requires the mutex before reading the _stateDoc because the operation comes from a user thread. 

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: