[SERVER-3780] GridFS and GridFile acessor member functions should be made 'const'. Created: 08/Sep/11  Updated: 11/Jul/16  Resolved: 14/Sep/11

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: 2.0.0-rc2
Fix Version/s: 2.1.0

Type: Improvement Priority: Minor - P4
Reporter: Yakov Markovitch Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File gridfs-const-accessors.patch    
Participants:

 Description   

All GridFS/GridFile accessors, like list(), getFilename(), exists(), etc. are currently non-const, which is both illogical and inconvenient (e.g. prevents from passing by const reference even if only nonmutating operations required).

The attached patche resolves this small issue.



 Comments   
Comment by Mathias Stearn [ 08/Sep/11 ]

Thanks, we'll pull this in right after we get 2.0 out.

Comment by Yakov Markovitch [ 08/Sep/11 ]

Done, filled out.

Comment by Mathias Stearn [ 08/Sep/11 ]

Could you fill out: http://www.10gen.com/contributor ?

Comment by Yakov Markovitch [ 08/Sep/11 ]

There is a pull request, too
https://github.com/ymarkovitch/mongo/pull/1

Generated at Thu Feb 08 03:04:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.