[SERVER-77100] Replace lock in src/mongo/rpc/metadata/impersonated_user_metadata.cpp with Client Lock Created: 12/May/23 Updated: 15/May/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Mark Benvenuto | Assignee: | Backlog - Security Team |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | perf-server-security | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Assigned Teams: |
Server Security
|
||||
| Participants: | |||||
| Linked BF Score: | 156 | ||||
| Description |
|
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. |