[CDRIVER-2001] mongoc_gridfs_file_writev(): parameter "iov" should have a 'const' qualifier Created: 25/Jan/17  Updated: 12/Sep/17  Resolved: 03/Aug/17

Status: Closed
Project: C Driver
Component/s: GridFS
Affects Version/s: None
Fix Version/s: 1.8.0

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


 Description   

Parameter iov in mongoc_gridfs_file_writev() should be of type "const mongoc_iovec_t *" to make it possible to write from a constant data location. Pretty much like for writev(2).

At this time, there is no way around it except to discard const-ness forcefully.



 Comments   
Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'ajdavis', 'name': u'A. Jesse Jiryu Davis', 'email': u'jesse@mongodb.com'}

Message:CDRIVER-2001 mongoc_gridfs_file_writev takes const iovec
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/ad65f71456b3979a0d30423dd09d6a55d5a83a2f

Comment by A. Jesse Jiryu Davis [ 25/Jan/17 ]

Thanks, that's a good idea.

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