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.
- is related to
-
CDRIVER-2228 All writes retryable support
- Closed
-
CDRIVER-4363 Improved Bulk Write API
- Closed
-
CDRIVER-2379 Optimize txnNumber rewriting
- Closed
- related to
-
CDRIVER-2387 Optimize access for retryWrites URI option
- Backlog