-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
3
Right now the class relies on using an atomic shared_ptr. On every update the map gets copied and the update is performed on the copy, then the new map is wrapped in a shared_ptr and swapped with the old one.
This use-case is quite similar to the one provided by our immutable maps so it should be quite simple to replace it. This would also help remove usage of the atomic shared_ptr functions as they are deprecated as of C++20 and the replacement is more or less banned in the server codebase.
- has to be done before
-
SERVER-89603 Audit usages of atomic operations on shared_ptrs
- Open
- is duplicated by
-
SERVER-76354 Modify ConcurrentSharedValuesMap to use immutable maps
- Closed