Skip to content

Commit dd78a71

Browse files
committed
1
1 parent c58a8a6 commit dd78a71

File tree

1 file changed

+0
-9
lines changed
  • components/content-service/pkg/storage

1 file changed

+0
-9
lines changed

Diff for: components/content-service/pkg/storage/gcloud.go

-9
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,6 @@ func (rs *DirectGCPStorage) Upload(ctx context.Context, source string, name stri
380380
// Increase chunk size for faster uploading
381381
wc.ChunkSize = googleapi.DefaultUploadChunkSize * 4
382382

383-
// TODO(aledbf): this will not be a problem using PVC
384-
// if the size of the backup is bigger than 10GB, do
385-
// not use chunks to avoid using too much memory
386-
tenGB := int64(10 * 1024 * 1024 * 1024)
387-
if totalSize > tenGB {
388-
log.WithField("bucket", bucket).WithField("obj", object).Warn("uploading more than 10GB to GCS")
389-
wc.ChunkSize = 0
390-
}
391-
392383
written, err = io.Copy(wc, sfn)
393384
if err != nil {
394385
log.WithError(err).WithField("name", name).Error("Error while uploading file")

0 commit comments

Comments
 (0)