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