-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
ALL
-
Sharding 2022-12-12
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Unsafe assignment operator
This user-written assignment operator does not check for self-assignment. If an object of this type is assigned to itself use-after-free errors may occur if the class owns resources. Assignment operator does not check for self-assignment
/src/mongo/db/server_options.h:57: SELF_ASSIGN 134250 No protection against the object assigning to itself.
- related to
-
SERVER-71818 Use the new cluster role class in the codebase
-
- Closed
-