Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-426

Disposing MongoGridFSStream

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.4.1
    • 1.4
    • None
    • None

    Description

      MongoGridFSStream.Dispose() behaves strangely and (from my point of view) inconsistently:
      1. It always tries to update file's MD5 and length, even if file was not changed (and even if stream was opened only for reading)
      2. It has the UpdateMD5 property that, when set to false, leads to file's MD5 being updated to null (we actually botched MD5 for all of our files with this, hehe)

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            onyxmaster Aristarkh Zagorodnikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: