_mongoc_cmd_parts_ensure_copied() is not called before appending Stable API options

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: