Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3780

GridFS and GridFile acessor member functions should be made 'const'.

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.1.0
    • Affects Version/s: 2.0.0-rc2
    • Component/s: Internal Client
    • Labels:
      None

      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.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            ymarkovitch Yakov Markovitch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: