[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:
Related
is related to CDRIVER-3974 Require passing Stable API options to... Closed

 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.


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