[CSHARP-426] Disposing MongoGridFSStream Created: 02/Apr/12 Updated: 02/Apr/15 Resolved: 04/Apr/12 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.4 |
| Fix Version/s: | 1.4.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Aristarkh Zagorodnikov | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
MongoGridFSStream.Dispose() behaves strangely and (from my point of view) inconsistently: |
| Comments |
| Comment by Aristarkh Zagorodnikov [ 05/Apr/12 ] |
|
Thank you very much for the fix. |
| Comment by Robert Stam [ 04/Apr/12 ] |
|
Added _fileIsDirty flag and only update metadata when file was actually modified |