Details
-
Bug
-
Resolution: Done
-
Major - P3
-
1.0.2
-
None
Description
(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)
|
}
|
Attachments
Issue Links
- related to
-
CDRIVER-872 GridFS files can be written to after saving
-
- Closed
-