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

Cannot seek on new GridFS file

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • 1.3.0-beta0
    • None
    • 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

        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: