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

Wrong reply from unacknowledged bulk writes

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: Bulk API, libmongoc
    • None
    • Minor Change

      Create a bulk operation with writeConcern w: 0 and run mongoc_bulk_operation_execute. The reply is:

      { "nInserted" : 0, "nMatched" : 0, "nModified" : 0, "nRemoved" : 0, "nUpserted" : 0, "writeErrors" : [  ] }
      

      ... regardless of what operations were executed. Instead, return the empty BSON "{}".

      This bugfix is also a minor API change, so highlight it in the 1.4.0 release notes, and do not backport.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: