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

WriteResult should encapsulate BSON instead of mongoc_write_result_t

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.6
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None

      mongoc_write_result_t: PHPC's WriteResult class composes a mongoc_write_result_t struct. The bulk write functions in libmongoc always convert this to a bson_t before returning it to the user. Currently, PHPC passes a NULL to * mongoc_bulk_operation_execute() to bypass creation of the result bson_t and instead accesses the mongoc_bulk_operation_t's result field directly. We should be able to use the bson_t and avoid relying on this private structure.

            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: