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

mongoc_collection_remove and delete alias fails if retryWrites=true

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.15.0
    • Affects Version/s: 1.10.0
    • Component/s: libmongoc
    • Labels:
      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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: