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

mongoc_gridfs_file_writev(): parameter "iov" should have a 'const' qualifier

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.8.0
    • Affects Version/s: None
    • Component/s: GridFS
    • None

      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.

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

              Created:
              Updated:
              Resolved: