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

Assert and document that mongoc_collection_find_and_modify_with_opts requires "opts"

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.13.0
    • Affects Version/s: None
    • Component/s: Docs, libmongoc
    • None

      The function will crash if given a NULL opts parameter. Document this and assert it at the top to cause clearer errors when a user makes a mistake. Or else allow NULL opts for consistency with other with_opts functions? That's the more likely answer.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: