[CDRIVER-4597] _mongoc_cmd_parts_ensure_copied() is not called before appending Stable API options Created: 28/Mar/23 Updated: 03/Apr/23 |
|
| Status: | Backlog |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | 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 |
Summary_mongoc_cmd_parts_ensure_copied() is typically called from mongoc_cmd_parts_assemble() before appending common command options (e.g. lsid, read/write concern). It notably is not called before appending Stable API options. I'm not sure if this is an intentional decision or an oversight. In practice, this may not affect any users as it's likely the command parts will already have been copied due to an earlier append. |