Handle new writeConcernErrors array in mongoc_write_result_t

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Blocker - P1
    • 1.0.0-beta2
    • Affects Version/s: 1.0.0-beta1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As of libmongoc 1.2.0-rc0 and CDRIVER-710, mongoc_write_result_t's old writeConcernError BSON document field has been replaced with a writeConcernErrors BSON array. Handling for this needs to be updated.

      For now, WriteResult::getWriteConcernError() can remain as-is and simply return the first write concern error, which is compliant with the Bulk API spec as discussed in SPEC-340.

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

              Created:
              Updated:
              Resolved: