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

Cannot seek on new GridFS file

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0-beta0
    • Affects Version/s: None
    • Component/s: GridFS
    • Labels:
    • Environment:
      All
    • Fully Compatible

      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.

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

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

              Created:
              Updated:
              Resolved: