WriteResult should encapsulate BSON instead of mongoc_write_result_t

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 1.1.6
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: