From dbd06bad71e8cb6f0b2b4b1c0bec69c30deb4c06 Mon Sep 17 00:00:00 2001 From: Jose Matsuda Date: Tue, 9 Apr 2024 09:12:06 -0400 Subject: [PATCH] test: --- internal/backend_s3.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/internal/backend_s3.go b/internal/backend_s3.go index 5bb4c3ba..0204823a 100644 --- a/internal/backend_s3.go +++ b/internal/backend_s3.go @@ -661,13 +661,15 @@ func (s *S3Backend) CopyBlob(param *CopyBlobInput) (*CopyBlobOutput, error) { from := s.bucket + "/" + param.Source - if !s.gcs && *param.Size > COPY_LIMIT { - reqId, err := s.copyObjectMultipart(int64(*param.Size), from, param.Destination, "", param.ETag, param.Metadata, param.StorageClass) - if err != nil { - return nil, err + /* + if !s.gcs && *param.Size > COPY_LIMIT { + reqId, err := s.copyObjectMultipart(int64(*param.Size), from, param.Destination, "", param.ETag, param.Metadata, param.StorageClass) + if err != nil { + return nil, err + } + return &CopyBlobOutput{reqId}, nil } - return &CopyBlobOutput{reqId}, nil - } + */ params := &s3.CopyObjectInput{ Bucket: &s.bucket,