Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-846

Refactor _mongoc_write_command_insert_append

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.2-rc0
    • Affects Version/s: None
    • Component/s: Bulk API, libmongoc
    • None

      _mongoc_write_command_init_insert and _mongoc_write_command_insert_append differ unnecessarily from the equivalent helper functions for update and remove: the insert functions take an array of documents instead of a single document.

      (The inconsistency dates from the implementation of mongoc_collection_insert_bulk, now deprecated. In any case, mongoc_collection_insert_bulk can be responsible for handling an array of documents instead of pushing that chore down the call stack.)

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: