Details
-
Bug
-
Resolution: Won't Do
-
Major - P3
-
None
-
None
-
None
-
None
-
Service Arch
-
ALL
Description
When I use TypedCommand, any BSONObjs in my request struct are not parsed in owned manner (e.g. here). This means that I cannot hold onto these objects after the command finishes running. I need to explicitly call `getOwned` on these objects to make them outlive command execution. While I can do this, this is brittle, I need to make sure to do this for all BSONObjs in all my request structs. It'd be great if TypedCommand instead parsed the incoming BSONObjs in owned manner.