[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: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| 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 |