-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.0.2
-
Component/s: GridFS
-
None
(ported from github)
The c driver's GridFS implementation requires that data be saved after being written. Unsaved data can't be read back.
test_write_seek_read (void) { ... mongoc_gridfs_file_writev (file, &iov, 1, 0); // notice we didn't save yet mongoc_gridfs_file_seek (file, 0, SEEK_SET); r = mongoc_gridfs_file_readv (file, &riov, 1, -1, 0); // r is correct, but riov points to empty buffer(it points to page->read_buf instead page->buf) }
- related to
-
CDRIVER-872 GridFS files can be written to after saving
- Closed