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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.17.4
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: