Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-59841

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

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

      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:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: