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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.1.0
    • 2.0.0-rc2
    • Internal Client
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: