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

Refactor findAndModify helper to use write_command_with_opts

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.27.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • Labels:
      None

      mongoc_collection_find_and_modify_with_opts() currently builds its command parts internally and executes via mongoc_cluster_run_command_monitored() while also implementing all of the retry logic from CDRIVER-2228.

      Refactoring findAndModify to use mongoc_client_read_write_command_with_opts() would remove code duplication for both read/write options and retry logic.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: