mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
@@ -64,7 +64,10 @@ func (s3 *warmBackendS3) getDest(object string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s3 *warmBackendS3) Put(ctx context.Context, object string, r io.Reader, length int64) (remoteVersionID, error) {
|
func (s3 *warmBackendS3) Put(ctx context.Context, object string, r io.Reader, length int64) (remoteVersionID, error) {
|
||||||
res, err := s3.client.PutObject(ctx, s3.Bucket, s3.getDest(object), r, length, minio.PutObjectOptions{StorageClass: s3.StorageClass})
|
res, err := s3.client.PutObject(ctx, s3.Bucket, s3.getDest(object), r, length, minio.PutObjectOptions{
|
||||||
|
SendContentMd5: true,
|
||||||
|
StorageClass: s3.StorageClass,
|
||||||
|
})
|
||||||
return remoteVersionID(res.VersionID), s3.ToObjectError(err, object)
|
return remoteVersionID(res.VersionID), s3.ToObjectError(err, object)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user