Consider whether ownership should be enforced by the IDL for owned types

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      As part of working onĀ SERVER-59204 we discovered that the FindCommandRequest IDL structure does not enforce that certain members like "filter" are actually owned, despite having type "object_owned_nonempty_serialize". We should consider whether it makes sense to enforce ownership in the IDL for owned types. If we do enforce then changes would include:

      1) Making default empty objects owned. For the "filter" field mentioned above, a query that is parsed with no filter will result in an empty object, which are not considered owned despite having no associated buffer.

      2) Making setters call BSONObj::getOwned() on input arguments

            Assignee:
            [DO NOT USE] Backlog - Query Optimization
            Reporter:
            James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: