[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: |
|
| 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 |