[CDRIVER-1699] Document that mongoc_find_and_modify_opts_append() and mongoc_find_and_modify_opts_set_*() copy their inputs Created: 13/Oct/16  Updated: 28/Oct/16  Resolved: 28/Oct/16

Status: Closed
Project: C Driver
Component/s: docs, libmongoc
Affects Version/s: None
Fix Version/s: 1.5.0

Type: Improvement Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CDRIVER-1867 Document lifetime of items added to m... Closed

 Description   

mongoc_find_and_modify_opts_append() and mongoc_find_and_modify_opts_set_*() take BSON pointers as parameters and copy them. Document that these parameters need not outlive the function call.



 Comments   
Comment by Githook User [ 28/Oct/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1699 Document lifetime expectations
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/ddb20fd9053d236fa4605494a3eb3727da3e1da5

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