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

A successful findAndModify retry leaves output bson_error_t set to initial error

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.17.4
    • None
    • None
    • None

    Description

      If mongoc_collection_find_and_modify_with_opts or mongoc_collection_find_and_modify succeeds after retrying due to retryable writes being enabled, it correctly returns "true" but leaves the output bson_error_t set to the original error. The error should be cleared in case caller code is checking the resulting error domain/code.

      Attachments

        Activity

          People

            kevin.albertson@mongodb.com Kevin Albertson
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: