Reduce memory usage for memory multipart write by doing io.Pipe() streaming copy

This commit is contained in:
Harshavardhana
2015-09-30 20:52:55 -07:00
parent daa089fb06
commit 50750efb52
2 changed files with 60 additions and 64 deletions

View File

@@ -361,6 +361,7 @@ func (donut API) createObject(bucket, key, contentType, expectedMD5Sum string, s
donut.storedBuckets.Set(bucket, storedBucket)
return objMetadata, nil
}
// calculate md5
hash := md5.New()
sha256hash := sha256.New()