Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4597

_mongoc_cmd_parts_ensure_copied() is not called before appending Stable API options

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: