Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2802

match_bson_with_ctx behavior is inconsistent

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Trivial - P5 Trivial - P5
    • 1.14.0
    • None
    • tests

    Description

      match_bson_with_ctx is used during testing to compare a BSON document against a pattern. If it fails, it aborts, unless the caller has passed in a context object with certain fields set. This behavior is subtle and undocumented. Instead, match_bson_with_ctx should not abort, and callers of match_bson should always check its return value for success or failure.

      Attachments

        Activity

          People

            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: