Details
-
Improvement
-
Status: Backlog
-
Major - P3
-
Resolution: Unresolved
-
None
-
None
-
None
-
Service Arch
Description
when generating the constructor.
Generates code looks like this:
SetClusterParameterCoordinatorDocument::SetClusterParameterCoordinatorDocument(mongo::BSONObj parameter) : _parameter(std::move(parameter)), _hasParameter(true) {
|
// Used for initialization only
|
}
|
Instead of
_parameter(std::move(parameter))
|
consider doing this instead:
_parameter(parameter.getOwned())
|
Attachments
Issue Links
- is related to
-
SERVER-51846 IDL parser should create owned copy of BSONObj subobjects
-
- Backlog
-
-
SERVER-59841 Consider whether ownership should be enforced by the IDL for owned types
-
- Backlog
-