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

filemd5 should support an arbitrary range of chunks to hash

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Incomplete
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: GridFS
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: