Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-436

Handle new writeConcernErrors array in mongoc_write_result_t

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 1.0.0-beta2
    • Affects Version/s: 1.0.0-beta1
    • Component/s: 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:
            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: