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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Security
    • 156
    • None
    • 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:
            Unassigned
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: