Update FLE2 to ensure BSONObj ownership

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.0-rc5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • v8.0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      To reduce the overheads of copying BSONObj into MatchExpressions, we aim to remove the _backingBSON from the MatchExpression. The MatchExpression will compare against a reference of an already existing BSONObj which survives the query. 

      Removing _backingBSON, this generates errors in src/mongo/db/modules/enterprise/jstests/fle2/query/range/one_sided_find.js
      src/mongo/db/modules/enterprise/jstests/fle2/query/range/trim_factor.js
      src/mongo/db/modules/enterprise/jstests/fle2/query/range/two_sided_agg.js
      src/mongo/db/modules/enterprise/jstests/fle2/query/range/two_sided_find.js
      src/mongo/db/modules/enterprise/jstests/fle2/range_precision.js

      e..g, patch

      This ticket shall address those errors.

            Assignee:
            William Qian
            Reporter:
            Matt Olma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: