[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: |
| Comment by A. Jesse Jiryu Davis [ 25/Jan/17 ] |
|
Thanks, that's a good idea. |