mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
feat: SSE-KMS use uuid instead of read all data to md5. (#17958)
This commit is contained in:
@@ -61,7 +61,7 @@ func fanOutPutObject(ctx context.Context, bucket string, objectAPI ObjectLayer,
|
||||
ActualSize: -1,
|
||||
DisableMD5: true,
|
||||
}
|
||||
hr, err := hash.NewReaderWithOpts(bytes.NewReader(fanOutBuf), hopts)
|
||||
hr, err := hash.NewReaderWithOpts(ctx, bytes.NewReader(fanOutBuf), hopts)
|
||||
if err != nil {
|
||||
errs[idx] = err
|
||||
return
|
||||
@@ -91,7 +91,7 @@ func fanOutPutObject(ctx context.Context, bucket string, objectAPI ObjectLayer,
|
||||
}
|
||||
|
||||
// do not try to verify encrypted content/
|
||||
hr, err = hash.NewReader(encrd, -1, "", "", -1)
|
||||
hr, err = hash.NewReader(ctx, encrd, -1, "", "", -1)
|
||||
if err != nil {
|
||||
errs[idx] = err
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user