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

Replace bulk_operation_update_with_opts()/bulk_operation_remove_with_opts() with bulk_operation_update_many_with_opts()/bulk_operation_remove_many_with_opts()

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None

      bulk_operation_remove_with_opts() has the awkward behavior that it will send an invalid operation to the server if the "limit" option is not specified. Similarly, bulk_operation_update_with_opts() has the unintuitive behavior that it will perform a single-update unless the "multi" option is specified as true.

      These API functions should be removed and replaced with new API functions bulk_operation_remove_many_with_opts() and bulk_operation_update_many_with_opts(). Like their bulk_operation_*_one_with_opts() counterparts, these API functions should set the "multi" and "limit" options appropriately on the generated requests.

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: