-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Service Arch 2022-08-08, Service Arch 2022-10-03
-
135
Some IDL types contain fields that are of type BSONObj. When we parse these types from BSON, those fields are references into the BSON we are parsing from, which can become a problem if the parsed IDL type outlives the BSON we are parsing from. The IDL has an "object owned" type to indicate that the parsed fields must own the underlying data, but not all IDL command reply types use this today.We need to investigate a solution, possibly but not necessarily involving converting reply types to use object_owned, to ensure that parsed reply types own their own data/can safely outlive the BSON they were parsed from.
- is depended on by
-
SERVER-68767 Make remote command runner use owning IDL parsers
- Closed
- related to
-
SERVER-74017 Make IDL _anchorObj field and setter protected
- Closed