[CDRIVER-870] Handle GridFS I/O operations beyond end-of-file Created: 22/Sep/15 Updated: 18/Nov/15 Resolved: 09/Oct/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | GridFS |
| Affects Version/s: | 1.2-rc0 |
| Fix Version/s: | 1.3.0-beta0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kyle Suarez | Assignee: | Kyle Suarez |
| Resolution: | Done | Votes: | 0 |
| Labels: | gridfs | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
All |
||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
If one seeks past the end of a GridFS file, the driver should do something reasonable when an I/O operation is performed. Documentation must be clearly updated to explain the driver's behavior with the seek/read/write behavior, especially beyond the end of the file. |
| Comments |
| Comment by Githook User [ 10/Oct/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@emptysquare.net'}Message: Merge pull request #290 from ksuarz/feature/extend
|
| Comment by Githook User [ 10/Oct/15 ] |
|
Author: {u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}Message: |
| Comment by Githook User [ 10/Oct/15 ] |
|
Author: {u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}Message: Writing past the end of a GridFS file now extends it and fills the gap space New functions: More tests added to test this behavior. |
| Comment by Githook User [ 10/Oct/15 ] |
|
Author: {u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}Message: You can mongoc_gridfs_file_seek() past the end of a file and call |
| Comment by Githook User [ 10/Oct/15 ] |
|
Author: {u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}Message: Attempting to call mongoc_gridfs_file_readv() after seeking past the end of the |