filemd5 should support an arbitrary range of chunks to hash

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Incomplete
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.6.0
    • Component/s: GridFS
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      My specific use case is implementing copy on write in my gridfs driver.

      I would like to update some chunks in a very large file and then use filemd5 to hash just the chunks that I wrote. I could then compare that hash to the hash of the chunks that I have written to in memory to make sure the entire write succeeded. If the hashes match, I would make them permanent. Otherwise, I would roll back the write.

      As you can see, I don't really have a performant workaround for this particular use case... My only option is to filemd5 the entire file, which is inefficient.

            Assignee:
            Ramon Fernandez Marina
            Reporter:
            Robert Ditthardt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: