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"

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.13.0
    • None
    • docs, libmongoc
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: