From b6c31839f36268dd2438a98892a03534c7a9a2a5 Mon Sep 17 00:00:00 2001 From: Leopold Jacquot Date: Thu, 19 Oct 2023 09:45:18 +0200 Subject: [PATCH] fix: upload backup on s3 like storage Signed-off-by: Leopold Jacquot --- go/vt/mysqlctl/s3backupstorage/s3.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go/vt/mysqlctl/s3backupstorage/s3.go b/go/vt/mysqlctl/s3backupstorage/s3.go index 06cff1793b5..ef3bfc37b31 100644 --- a/go/vt/mysqlctl/s3backupstorage/s3.go +++ b/go/vt/mysqlctl/s3backupstorage/s3.go @@ -173,7 +173,8 @@ func (bh *S3BackupHandle) AddFile(ctx context.Context, filename string, filesize }) object := objName(bh.dir, bh.name, filename) sendStats := bh.bs.params.Stats.Scope(stats.Operation("AWS:Request:Send")) - _, err := uploader.UploadWithContext(ctx, &s3manager.UploadInput{ + // Using UploadWithContext breaks uploading to Minio and Ceph https://github.com/vitessio/vitess/issues/14188 + _, err := uploader.Upload(&s3manager.UploadInput{ Bucket: &bucket, Key: object, Body: reader,