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

Clean up logic in AsioNetworkingBaton::detachImpl

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch

      The work in SERVER-90352 missed an opportunity to further simplify the logic in AsioNetworkingBaton::detachImpl. Since the map represented by the _timersById member variable doesn't need to be modified in any way after being moved off the object in detachImpl, we can just clear it in the critical section rather than std::exchange it into a local variable.

            Assignee:
            Unassigned Unassigned
            Reporter:
            james.bronsted@mongodb.com James Bronsted
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: