[CDRIVER-3542] Refactor error label copying Created: 18/Feb/20 Updated: 28/Oct/23 Resolved: 26/Feb/20 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.17.0-beta, 1.17.0 |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Andreas Braun | Assignee: | Andreas Braun |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
copy_labels_plus_retryable_write_error and copy_labels_plus_unknown_commit_result share most of their logic. This should be refactored into a more generic _mongoc_error_copy_labels_and_upsert (src, dst, label) function. |