[CDRIVER-2386] Refactor findAndModify helper to use write_command_with_opts Created: 17/Nov/17  Updated: 07/Mar/23

Status: Backlog
Project: C Driver
Component/s: libmongoc
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-2387 Optimize access for retryWrites URI o... Backlog
is related to CDRIVER-2228 All writes retryable support Closed
is related to CDRIVER-2379 Optimize txnNumber rewriting Closed

 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.


Generated at Wed Feb 07 21:15:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.