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

Refactor findAndModify helper to use write_command_with_opts

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • libmongoc
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: