[CDRIVER-867] More errors for GridFS seek Created: 21/Sep/15  Updated: 18/Nov/15  Resolved: 01/Oct/15

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

Type: Improvement 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


Backwards Compatibility: Fully Compatible

 Description   

It would be nice if mongoc_gridfs_file_seek() implemented more of the same errors as fseek(3):

[EINVAL]    Resulting file position is negative or `whence` is invalid.

Currently only EINVAL is set for when whence is not valid.



 Comments   
Comment by Githook User [ 01/Oct/15 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@10gen.com'}

Message: Merge pull request #274 from ksuarz/feature/seek-errors

CDRIVER-867: Errors for GridFS seek
Branch: 1.3.0-dev
https://github.com/mongodb/mongo-c-driver/commit/1f64cb4297a8d5010462fad91717e25f4620caa1

Comment by Githook User [ 01/Oct/15 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}

Message: CDRIVER-867 assert rather than EBADF
Branch: 1.3.0-dev
https://github.com/mongodb/mongo-c-driver/commit/8e76e19df2aef8ef48493510eeab2b5715831537

Comment by Githook User [ 01/Oct/15 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}

Message: CDRIVER-867 update official seek documentation
Branch: 1.3.0-dev
https://github.com/mongodb/mongo-c-driver/commit/f7d7513feb651f02e498006a350f517068a76d2d

Comment by Githook User [ 01/Oct/15 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}

Message: CDRIVER-867 style fixes
Branch: 1.3.0-dev
https://github.com/mongodb/mongo-c-driver/commit/2f730531e4dbffffa6240265dcc899876c508674

Comment by Githook User [ 01/Oct/15 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'ksuarz@gmail.com'}

Message: CDRIVER-867 more errors for gridfs seek
Branch: 1.3.0-dev
https://github.com/mongodb/mongo-c-driver/commit/ad7c994ed7ecbe3cb7bfe821a1c2df16eab0690f

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