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

mongoc_collection_remove and delete alias fails if retryWrites=true

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.15.0
    • 1.10.0
    • libmongoc
    • None

    Description

      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.

      Attachments

        Activity

          People

            jmikola@mongodb.com Jeremy Mikola
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: