Investigate whether BSON depth validation logic can be consolidated

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Execution Team 2021-11-01
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently we have two separate implementations to validate the depth of a BSON object: one used by inserts and one used by updates. This can lead to discrepancies like the one described in SERVER-58777. Thus it may be valuable to determine whether it would be possible to consolidate these two implementations into one.

      However, this may not be possible due to performance reasons. In particular, the update path uses mutablebson to do the traversal whereas the insert path does not..

            Assignee:
            Gregory Noma
            Reporter:
            Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: