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

Disposing MongoGridFSStream

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.1
    • Affects Version/s: 1.4
    • Component/s: None
    • Labels:
      None

      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)

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

              Created:
              Updated:
              Resolved: