IDL-generated structs have an isOwned method which indicates whether an instance of the struct owns all of its underlying data. For structs that have fields which may be views, isOwned is implemented by checking whether the underlying BSONObj anchor is owned. For structs which do not have any fields that can be views, the generated class has no such anchor member, and so the IDL generator instead generates a method that just always returns true. However, it looks like there's a typo, since the name of the generated method in this case is isOwner (ending in with an "r") rather than isOwned.
IDL structs without underlying anchor generate "isOwner()" instead of "isOwned"
- Votes:
-
0 Vote for this issue
- Watchers:
-
2 Start watching this issue
- Created:
- Updated:
- Resolved: