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

Do not use mongoc_bulk_operation_t private API in BulkWrite debug handler

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

      PHPC sets the database and collection itself when executing the BulkWrite, so it should simply store both strings and a boolean tracking execution state on the BulkWrite struct. The ordered value can be saved from the BulkWrite constructor.

      The oustanding mongoc_bulk_operation_t flag is bypassDocumentValidation, which is not currently included in the debug handler. That value can be captured at the same time as the ordered boolean if we wish to include it in the debug output.

            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: