Replace lock in src/mongo/rpc/metadata/impersonated_user_metadata.cpp with Client Lock

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Security
    • 156
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      To fix BF-24031, we added a usage of synchronized_value. While a lock is needed to coordinate thread access, we can use the Client lock instead of allocating yet another lock to guard access.

      We should probably create a synchronized_value like class the requires client as a parameter to get the underlying type to ensure proper access.

            Assignee:
            [DO NOT USE] Backlog - Security Team
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: