[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: |
|
||||||||||||||||
| 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 Refactoring findAndModify to use mongoc_client_read_write_command_with_opts() would remove code duplication for both read/write options and retry logic. |