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

nInserted incremented despite error

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 0.94.0
    • Bulk API, libmongoc
    • None

    Description

      Starting at this commit:

      https://github.com/mongodb/mongo-c-driver/commit/48a859952204acd3ad9d057e2b36ecd01218c529#diff-37eb77aadf1acdb5086324d8a2056e7eR308

      the nInserted number reported for a batch OP_INSERT is incremented, even for documents the server rejects. Observed in mongoc_bulk_operation_insert, may be the same for all insert APIs.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: