mongoc_collection_remove and delete alias fails if retryWrites=true

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.15.0
    • Affects Version/s: 1.10.0
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Similar to CDRIVER-3051, mongoc_collection_remove() and its mongoc_collection_delete() alias both fail to set the has_multi_write flag on a command, which can lead to a server error if retryable writes are enabled.

      I found no existing tests for these methods, so I will add a regression test for this issue that utilizes both methods.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: