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

Cannot seek on new GridFS file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • 1.3.0-beta0
    • GridFS
    • All
    • Fully Compatible

    Description

      mongoc_gridfs_file_seek() does not load pages into the data buffer. This may be intentional because we want to only lazily load pages on demand for reads and writes, but this causes failures when seeking on a new GridFS file that hasn't been readv'd or writev'd.

      A minimal example is attached.

      Attachments

        1. gridfs.dat
          2 kB
        2. gridfs-seek.c
          1 kB

        Issue Links

          Activity

            People

              kyle.suarez@mongodb.com Kyle Suarez
              kyle.suarez@mongodb.com Kyle Suarez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: