[CDRIVER-847] Cannot seek on new GridFS file Created: 16/Sep/15  Updated: 23/Oct/15  Resolved: 16/Sep/15

Status: Closed
Project: C Driver
Component/s: GridFS
Affects Version/s: None
Fix Version/s: 1.3.0-beta0

Type: Bug Priority: Major - P3
Reporter: Kyle Suarez Assignee: Kyle Suarez
Resolution: Duplicate Votes: 0
Labels: gridfs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All


Attachments: File gridfs-seek.c     File gridfs.dat    
Issue Links:
Depends
is depended on by CDRIVER-839 Bad interpretation of GridFS "SEEK_EN... Closed
Duplicate
duplicates CDRIVER-510 Fix for GridFS file seek if page == NULL Closed
Backwards Compatibility: 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.



 Comments   
Comment by Kyle Suarez [ 16/Sep/15 ]

See CDRIVER-510.

Generated at Wed Feb 07 21:10:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.